Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 740 Bytes

README.md

File metadata and controls

16 lines (15 loc) · 740 Bytes

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