diff --git a/code.js b/code.js index 663c50b..e3fedab 100644 --- a/code.js +++ b/code.js @@ -457,10 +457,10 @@ function checkWinCondition(){ } } function score (field){ - if(field.piece === 0 && turnPlayer === "Player-Turn: X" && scoreCounterX > 10){ - scoreCounterX -= 10; - } else if(field.piece === 0 && turnPlayer === "Player-Turn: O" && scoreCounterO > 10){ - scoreCounterO -= 10; + if(field.piece === 0 && turnPlayer === "Player-Turn: X" && scoreCounterX > 25){ + scoreCounterX -= 5; + } else if(field.piece === 0 && turnPlayer === "Player-Turn: O" && scoreCounterO > 25){ + scoreCounterO -= 5; } else if (field.piece === 1){ scoreO += scoreCounterO; scoreCounterO = 100;