Commit 8d4d3c3e authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

corrected scoring

parent 1befccf6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -193,13 +193,13 @@ compete_all_players:
      status=$?
      set -e
      
      case "$status:$STUDENT_COLOR" in
      1:White|2:Black)
      case "$status" in
      1)
      echo "White wins!"
      curl "https://agile.bu.edu/ec330_scripts/chessScores.pl?key=${MAGIC_KEY}&name=${WHITE_PLAYER}&result=1"
      curl "https://agile.bu.edu/ec330_scripts/chessScores.pl?key=${MAGIC_KEY}&name=${BLACK_PLAYER}&result=0"
      ;;
      *)
      2)
      echo "Black wins!!!"
      curl "https://agile.bu.edu/ec330_scripts/chessScores.pl?key=${MAGIC_KEY}&name=${WHITE_PLAYER}&result=0"
      curl "https://agile.bu.edu/ec330_scripts/chessScores.pl?key=${MAGIC_KEY}&name=${BLACK_PLAYER}&result=1"