Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisAcrobat authored Apr 10, 2022
1 parent 0040611 commit 4f33adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arena.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function callParticipant(match, aiIndex){
participant.postMessage(match.gameboard).then(response => {
let selectedMove = 0;
if(response.message){
if(0 <= r.message.data && response.message.data < match.gameboard.length/2 && 0 < match.gameboard[response.message.data]){ // Check if legal move.
if(0 <= response.message.data && response.message.data < match.gameboard.length/2 && 0 < match.gameboard[response.message.data]){ // Check if legal move.
selectedMove = response.message.data;
}
}
Expand Down

0 comments on commit 4f33adb

Please sign in to comment.