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)){
|
if((before === 1 && board[r2][c2] === 3) || (before === 2 && board[r2][c2] === 4)){
|
||||||
playSound("king");
|
playSound("king");
|
||||||
}
|
}
|
||||||
|
// alert("pion captured!")
|
||||||
switchTurn();
|
switchTurn();
|
||||||
draw();
|
draw();
|
||||||
if(!checkWinCondition()) triggerAI();
|
if(!checkWinCondition()) triggerAI();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user