Learn about ghc profiling and profile commit 43336e2 against 0c4c428. These two are consecutive commits, but the latter seemed a lot slower in ghci, probably due to the huge refactoring of nested data types and excessive pattern matching.
Anyway to suspend drawing thread during pause screen?
The app needs a new field! It can keep track of the location of the current cell to highlight with a highlightLocation :: (Int, Int) record field, defaulting to (0, 0).
Tasks:
First, for highlightLocation (x, y), actually highlight it!
This is an informal list of things I want to implement.
Two modes: 1v1, player vs bot Bots move randomly.
Two screens: Home screen and play screen.
Home screen has "play 1v1", "play vs bots", and "quit" options. Users navigate these using ↑ and ↓.
Play screen is where you see a tic tae toe board and play. You choose a move by using the arrows keys and then pressing enter to plant your move. You can see where you will plant your move thanks to a highlighted boarder.
In the play screen, you can type q + enter to go back to the home screen and r + enter to restart.