Skip to content
Snippets Groups Projects
Commit bf513292 authored by De Brettes Thomas's avatar De Brettes Thomas
Browse files

Create server.js

parent 38576bcc
No related branches found
No related tags found
No related merge requests found
const canvas = document.getElementById("chessboard");
const ctx = canvas.getContext("2d");
const size = 60;
for (let row = 0; row < 8; row++) {
for (let col = 0; col < 8; col++) {
ctx.fillStyle = (row + col) % 2 === 0 ? "white" : "black";
ctx.fillRect(col * size, row * size, size, size);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment