From a18458e8bb03d3947881eb8f21e683cb84574500 Mon Sep 17 00:00:00 2001 From: Namonay Date: Sun, 25 Feb 2024 00:18:27 +0100 Subject: [PATCH] Fixed winner being the wrong one ? --- frontend/static/js/views/TicTacToeView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/static/js/views/TicTacToeView.js b/frontend/static/js/views/TicTacToeView.js index 5ad543b..77b2336 100644 --- a/frontend/static/js/views/TicTacToeView.js +++ b/frontend/static/js/views/TicTacToeView.js @@ -129,7 +129,7 @@ export default class extends AbstractView morpion.ctx.closePath(); morpion.ctx.beginPath(); morpion.ctx.fillStyle = "black"; - morpion.ctx.fillText((morpion.Winner) ? "Winner is : X" : "Winner is : O", morpion.width / 2 - 30, morpion.height - morpion.gap / 2, 140); + morpion.ctx.fillText((morpion.Winner) ? "Winner is : O" : "Winner is : X", morpion.width / 2 - 30, morpion.height - morpion.gap / 2, 140); morpion.ctx.closePath(); } @@ -246,6 +246,7 @@ export default class extends AbstractView return `

${lang.get('ticTacToe')}

+

J'arrive pas a ecrire du html a droite 🤓🤓🤓🤓

`; } }