Added online page (WIP)

This commit is contained in:
Namonay
2024-03-19 13:46:09 +01:00
committed by AdrienLSH
parent 59d89d27f6
commit a3be4681cc
8 changed files with 106 additions and 5 deletions

View File

@ -124,7 +124,7 @@ export default class extends AbstractView
morpion.ctx.fillRect(morpion.width / 2 - 200, morpion.height - morpion.gap + 10, 400, 80);
morpion.ctx.closePath();
morpion.ctx.beginPath();
morpion.ctx.fillStyle = "black";
morpion.ctx.fillStyle = (morpion.Winner) ? "red" : "green";
morpion.ctx.fillText((morpion.Winner) ? "Winner is : O" : "Winner is : X", morpion.width / 2 - 30, morpion.height - morpion.gap / 2, 140);
morpion.ctx.closePath();
}