diff --git a/html/testBot.html b/html/testBot.html index 0ffae0b..0e6fa2f 100644 --- a/html/testBot.html +++ b/html/testBot.html @@ -138,7 +138,7 @@ function play(player){ die; } }}; - xhr.open("POST", document.getElementById('player' + player + 'URL').value, true); + xhr.open("POST", document.getElementById('url' + player).value, true); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.send('game=connectFour&match_id=666-' + player + '&you=' + symbol + '&grid=' + JSON.stringify(grid) );