My notes while learning Haskell
- This repo contains some resources i found interesting to start with learning Haskell
- my personal notes and a cheat sheet
- 3 illustrative games examples:
- Hangman
- Tictac [WIP]
Run the program using : runhaskell hangman.hs
Run the haskell interpreter and load the programm
*Main> bestMove emptyBoard
["X..","...","..."]
*Main> play 1 2 'O' it
["X..","..O","..."]
*Main> bestMove it
["X.X","..O","..."]
*Main> play 0 1 'O' it
["XOX","..O","..."]
*Main> bestMove it
["XOX",".XO","..."]
*Main> play 2 2 'O' it
["XOX",".XO","..O"]
*Main> bestMove it
["XOX",".XO","X.O"]
*Main> play 1 0 'O' it
["XOX","OXO","X.O"]
*Main> bestMove it
["XOX","OXO","XXO"]
TODO: Refactor it into a program with a main.
Haskell Tutorial Cheat Sheet Best Free Haskell Book Learn You a Haskell