From 4f33adb354c00b856694f4ab415de6c71ec94599 Mon Sep 17 00:00:00 2001 From: Christoffer Olofsson <15955091+ChrisAcrobat@users.noreply.github.com> Date: Sun, 10 Apr 2022 12:02:36 +0200 Subject: [PATCH] Fixed typo --- arena.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arena.js b/arena.js index a4fe3cd..72e9922 100644 --- a/arena.js +++ b/arena.js @@ -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; } }