better translation, alert javascrpt if a bot is on error

pull/103/head
gnieark 7 years ago
parent b3ca614cbe
commit de49c375ac

@ -247,10 +247,11 @@ function play(player){
addLog('His rsponse is:' + xhr.responseText);
playingAT(colTarget);
}else{
addLog ('bot response must be a digit betwin 0 and 7, witch indicate the conumn number where he wants play. Voici sa réponse: "' + colTarget + '"' );
addLog ('bot response must be a digit betwin 0 and 7, witch indicate the conumn number where he wants play. His response his: "' + colTarget + '"' );
}
}else{
addLog('le bot ' + player + ' does not respond. ' + xhr.status);
}else{
alert ('Bot ' + player + ' replied with an error code: ' + xhr.status + ' ' + xhr.responseText);
addLog('Bot ' + player + ' replied with an error code: ' + xhr.status + ' ' + xhr.responseText);
return;
}
}else{

Loading…
Cancel
Save