From 63ada00d8f926058323851199589aea017ef3be2 Mon Sep 17 00:00:00 2001 From: Guerrero96 Date: Sun, 21 Apr 2024 19:27:00 -0500 Subject: [PATCH] html grid --- html/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/index.html b/html/index.html index dbf7506..f57ef89 100644 --- a/html/index.html +++ b/html/index.html @@ -151,11 +151,11 @@

Leaderboard

gridTable.innerHTML = ''; // Create a 2x2 grid for the game - for (let i = 0; i < 2; i++) { + for (let i = 0; i < 50; i++) { var tr = document.createElement('tr'); - for (let j = 0; j < 2; j++) { + for (let j = 0; j < 50; j++) { var td = document.createElement('td'); - var char = grid[i * 2 + j]; + var char = grid[i][j]; td.textContent = char; tr.appendChild(td); }