mine.front←html
mine.Sweep 0Minesweeper logic.
Use a frontend (a class with a constructor which takes a mine object, and a loop method):
mine.front←some_classDefault frontend: mine.dummy.
Play the game:
mine.Sweep 0 ⍝ small
mine.Sweep 1 ⍝ medium
mine.Sweep 2 ⍝ big
(height,width) mine.Sweep num_of_minesFrontend using HTMLRenderer (recommended).
Part of the styling was taken from here.
Frontend using winforms.