Skip to content

JDysiewicz/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper

Minesweeper with HTML/CSS/JS - first JS project

What I've Learned

  • Creating tables dynamically with JS
  • Altering classes dynamically with JS
  • Randomness in JS - assign bomb class to a random number of boxes via *Math.floor
  • While loops in JS
  • Working on the recursive algo for unvealing adjacent boxes
    • Achieved using callback functions
  • Altering innerHTML via JS
  • Using functions as input for other functions (callback functions); *adjacentSquares
  • Making cells equal size despite not being occupied (add invis backslash char)
  • .split method for splitting strings based on delimiter
  • parseInt to alter value of cell depending on surrounding bomb count
  • SCSS variables for colour

About

Minesweeper with HTML/CSS/JS - first JS project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published