Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngzhian/rcp-haskell
Rock Scissors Paper game, written in Haskell
https://github.com/ngzhian/rcp-haskell
Last synced: about 1 month ago
JSON representation
Rock Scissors Paper game, written in Haskell
- Host: GitHub
- URL: https://github.com/ngzhian/rcp-haskell
- Owner: ngzhian
- Created: 2014-05-01T14:49:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-01T15:11:01.000Z (over 10 years ago)
- Last Synced: 2024-10-13T06:50:56.835Z (3 months ago)
- Language: Haskell
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Rock Paper Scissors
===================A simple game of rock paper scissors written in Haskell.
The main point of writing this was an exercise, especially to practice the syntax, IO, data constructors.More about this in a [blog post here](http://ngzhian.github.io/blog/posts/2014-05-01-rps-haskell.html)
![How the game looks like now](ngzhian.github.io/blog/images/rcp-haskell.png)
The commit history shows the steps I took to slowly 'complete' the game.
The first commit was a very simple single-game.
Slowly I added more features, like continuing the game and error handling.
Then I shifted focus to improving the quality of code, using appropriate types, and trying to write more idiomatic and cleaner Haskell.## Running
``` bash
git clone https://github.com/ngzhian/rcp-haskell.git
cd rcp-haskell
runhaskell Rock-Paper-Scissors.hs
```