TU-CSCI2322-FL22 / solver-the-connectors

solver-the-connectors created by GitHub Classroom
0 stars 0 forks source link

Need a `checkWinner :: Board -> Maybe Winner/GameStatus` #8

Closed sfogarty closed 1 year ago

sfogarty commented 1 year ago

For Milestone 2, the simplest way to do it (in terms of coding) is to check the winner on a board without being aware of its last move. However, at not-too-much extra coding you can keep the winner with the board, as your current makeMove does. But you will need to find the winner of the STARTING board, which will require a generalized version of checkWinner that doesn't know the last location. It is okay if that is inefficient, cause you will only use it once.