Skip to content

Commit

Permalink
Grid size change from 35 to 25
Browse files Browse the repository at this point in the history
  • Loading branch information
JYNguyen committed Apr 24, 2024
1 parent 994a7cb commit 7638994
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 @@ -189,7 +189,7 @@ <h1>The Word Search Game</h1>
});


//generate 35*35 grid
//generate 25*25 grid

//too big may have to do smaller grid or smaller cells
function generateGrid()
Expand All @@ -198,11 +198,11 @@ <h1>The Word Search Game</h1>
const tblBody = document.createElement("tbody");
//create cells

for(let i=0,k=0;i<35;i++)
for(let i=0,k=0;i<25;i++)
{
//create rows
const row = document.createElement("tr");
for(let j=0;j<35;j++,k++)
for(let j=0;j<25;j++,k++)

{
//create cells and add it to the row
Expand Down

0 comments on commit 7638994

Please sign in to comment.