https://github.com/deciduously/mines
Minesweeper in Reagent
https://github.com/deciduously/mines
clojurescript minesweeper react reagent
Last synced: 3 months ago
JSON representation
Minesweeper in Reagent
- Host: GitHub
- URL: https://github.com/deciduously/mines
- Owner: deciduously
- License: mit
- Created: 2018-02-10T16:38:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-12T01:16:34.000Z (over 7 years ago)
- Last Synced: 2026-01-24T18:51:54.156Z (4 months ago)
- Topics: clojurescript, minesweeper, react, reagent
- Language: Clojure
- Homepage: http://deciduously.com/mines
- Size: 25.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mines!
Minesweeper in [Reagent](https://reagent-project.github.io/). Currently a tad broken.
### Play
To build locally, you need `git`, `java`, and `boot`. Refer to your OS documentation to obtain a Java installation. To quickly make `boot` available, this [Makefile](https://gist.github.com/deciduously/3451bfc89414c56ef734ceebeeb7db14) provides a `make deps` command which will retrieve the `boot` shim via `curl`, placing it in `./bin`. It's very small - `boot` will gather the needed dependencies itself on first run.
Then execute:
```shell
git clone https://github.com/deciduously/mines
cd mines/
boot build # bin/boot build if using the above Makefile
```
Open the resulting `target/index.html` file in your browser and settle in for the night.
### Hack
`boot dev` will run a hot-reloading dev server on `localhost:3000`.
You can use this with EMACS/Cider by invoking `cider-jack-in-clojurescript`, waiting a while, opening the repl buffer, and typing `(def p (future (boot (dev))))`, waiting for it to compile, typing `(start-repl)`, pointing your browser to `localhost:3000`, and finally attaching the browser devtools.
The interactivity is *totally* worth the extra 90 seconds of startup time - what are you closing EMACS for, anyway?