Skip to content

Instantly share code, notes, and snippets.

@dschinkel
Last active September 9, 2018 23:56
Show Gist options
  • Save dschinkel/2cfc278dbcd7a2ed494fcc1f6db22007 to your computer and use it in GitHub Desktop.
Save dschinkel/2cfc278dbcd7a2ed494fcc1f6db22007 to your computer and use it in GitHub Desktop.
miniMax Algorithm in Elm - Tests - next move wins for a row - Attempt 1 - Test Only
it "next move wins for a row" <|
let
gameNode =
[ markerX, markerX, empty, empty, empty, empty, empty, empty, empty ]
cellThreeIndex =
2
nextMove =
Solver.nextBestMove gameNode
in
expect nextMove to equal cellThreeIndex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment