Skip to content

Commit

Permalink
grid 35*35
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiML10 committed Apr 23, 2024
1 parent f6f1d23 commit 3c1cebb
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 @@ -148,18 +148,18 @@ <h1>The Word Search Game</h1>
requestGameList();
});

//generate 50x50 grid
//generate 35*35 grid
//too big may have to do smaller grid or smaller cells
function generateGrid()
{
const tbl = document.createElement("table");
const tblBody = document.createElement("tbody");
//create cells
for(let i=0;i<50;i++)
for(let i=0;i<=35;i++)
{
//create rows
const row = document.createElement("tr");
for(let j=0;j<50;j++)
for(let j=0;j<=35;j++)
{
//create cells and add it to the row
const cell = document.createElement("td");
Expand Down

0 comments on commit 3c1cebb

Please sign in to comment.