perubahan logika game
This commit is contained in:
parent
d36cd0393e
commit
1c447e0f0d
@ -192,7 +192,7 @@ function tryMove(r1,c1,r2,c2){
|
||||
if((before === 1 && board[r2][c2] === 3) || (before === 2 && board[r2][c2] === 4)){
|
||||
playSound("king");
|
||||
}
|
||||
|
||||
// alert("pion captured!")
|
||||
switchTurn();
|
||||
draw();
|
||||
if(!checkWinCondition()) triggerAI();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user