Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 866 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 866 Bytes

Minesweeper

I recently played with Clojure for the first time, which resulted in this implementation of the Minesweeper game. The UI is text based and placed in a separate module from the core game functionality.

Usage

Run from the REPL:

(minesweeper.repl/play width height number-of-mines)

From Leiningen:

lein run 9 9 10

Add --color if you're running in a terminal supporting ansi coloring. Add --hof if you have Neo4j running and want to enable the Hall-of-Fame function.

For further details, then add --help.

Tests

To run Speclj tests, run

lein spec -a

Add -C if you're running in a terminal not supporting ansi coloring.

See also

You can find a web-based GUI for this game core here: https://github.com/oysteinjakobsen/minesweeper-webapp-clojure