Skip to content

Minesweeper clone in Purescript using Halogen-Hooks

Notifications You must be signed in to change notification settings

CarstenKoenig/minesweeper-ps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minesweeper-ps

the well known classic game implemented in PureScript using Halogen-Hooks.


The goal of this project was for me to learn more about halogen-hooks and how to use them.

Along the way I used a few thing I had not much experience with:

  • SCSS, CSS-Grid
  • using a EventSource with halogen (in this case a very simple wrapper for a setInterval/timer)
  • preventDefault on context-menues

I'm not sure if this is all really idiomatic so please let me know if any of this here can be simplified or should be done differently.

Overall the expereince with hooks was very pleasant and after I found the hint to effectEventSource the timer-component was quite straightforward too.


You might also find these Halogen conecpts used here interesting: