- clone this project and run
cabal run - There are 3 Color Scheme:
- Green if the letter of guess is in correct position
- Blue if the letter of guess is incorrect position but is part of answer
- Black if the letter of guess is not part of answer
I start the initial version of this app using Typescript (the code is in ts-version folder), I try to make the code as close to Haskell syntax.
Ian helped me in translating typescript code to haskell version.
The Typescript version is not stable and no longer maintained.
- Currently the word is hardcoded to
hello, should add feature to select any random 5 letters word. - refactor gameLoop function, to use Monad Transformer
- Check if guess submitted is a valid english word, plan to use http service for this feature
- A good exercise to run http request in Haskell