Skip to content

Commit

Permalink
html
Browse files Browse the repository at this point in the history
grid
  • Loading branch information
Guerrero96 committed Apr 22, 2024
1 parent b29518b commit 63ada00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ <h3>Leaderboard</h3>
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);
}
Expand Down

0 comments on commit 63ada00

Please sign in to comment.