diff --git a/frontend/canvas-chess-renderer.ts b/frontend/canvas-chess-renderer.ts index dc023a0..4a41fb5 100644 --- a/frontend/canvas-chess-renderer.ts +++ b/frontend/canvas-chess-renderer.ts @@ -124,7 +124,7 @@ export default class CanvasChessRenderer { this.ctx.fillStyle = '#eedab8'; for(let row = 0;row < 8; row ++) { for(let col = 0;col < 8; col ++) { - if(row % 2 !== col % 2) continue; + if(row % 2 === col % 2) continue; this.ctx.fillRect(col * drawSize, row * drawSize, drawSize, drawSize); } } diff --git a/frontend/index.ts b/frontend/index.ts index a266b83..d127b53 100644 --- a/frontend/index.ts +++ b/frontend/index.ts @@ -109,9 +109,9 @@ function renderOldGame(g: OldGame): HTMLElement { function renderLiveGame(g: LiveGame) { return `