Skip to content

🤪This is a replica of the original Minesweeper puzzle game, but instead of mines it is trollfaces.

Notifications You must be signed in to change notification settings

claesgill/trollsweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trollsweeper

This is a replica of the original Minesweeper puzzle game, but instead of mines it is trollfaces.

The code is somewhat generic. You can play around with the variables in the SetupCanvas()-function:

  • cols is the number of columns
  • rows is the number of rows.
  • cellSize is the size of a cell.
  • numTrollCells is the number of trolls hiding.

If you do not want to test the code there is a live version on my webpage.

Todo

  • Make the user deside the number of cells and trolls.

Inspired by the coding challenge #71 made by @TheCodingTrain

About

🤪This is a replica of the original Minesweeper puzzle game, but instead of mines it is trollfaces.

Topics

Resources

Stars

Watchers

Forks