Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/torvaney/wolf-and-hare
A 2-player implementation of the game by Martin Weidner.
https://github.com/torvaney/wolf-and-hare
elm elm-lang game wolf-and-hare
Last synced: 24 days ago
JSON representation
A 2-player implementation of the game by Martin Weidner.
- Host: GitHub
- URL: https://github.com/torvaney/wolf-and-hare
- Owner: Torvaney
- Created: 2017-06-01T18:27:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-06T09:44:33.000Z (over 7 years ago)
- Last Synced: 2024-11-12T12:45:36.981Z (3 months ago)
- Topics: elm, elm-lang, game, wolf-and-hare
- Language: Elm
- Homepage: https://torvaney.github.io/projects/wolf-and-hare
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wolf and Hare
A 2 player version of the game outlined
[here](http://www.ucl.ac.uk/~uctpmw0/HaseWolf/hw_main.html)
by Martin Weidner.## The rules
* Players take turns to move.
* The Wolf (red) can move one of its three pieces diagonally and forwards.
* The Hare (blue) can move diagonally in all directions.
* Players cannot move into a space alrady occupied by another piece.
* The goal of the Hare is to reach the bottom of the board.
* The goal of the Wolves is to trap the Hare so that it cannot make any moves.The game comes with an additional twist: the player starting the game cannot win unless the opponent makes a mistake...
## Try it out
[Link](https://torvaney.github.io/projects/wolf-and-hare)
## Compile
Compile to javascript with `elm-make`
```
elm-make src/elm/Main.elm --output src/static/js/main.js
```...and then view `index.html` in a browser.