Skip to content

Instantly share code, notes, and snippets.

@craine
Created October 2, 2017 16:44
Show Gist options
  • Save craine/35dc999d4d7821806bf7b3e2536265b0 to your computer and use it in GitHub Desktop.
Save craine/35dc999d4d7821806bf7b3e2536265b0 to your computer and use it in GitHub Desktop.
Failed Test: 7. Test functionality of AlphaBetaPlayer.alphabeta()
----------------------------------------------------------------------
AssertionError: False is not true : Your AlphaBetaAgent.alphabeta function returned a move that was not the optimal move for the given heurisitc. Make sure that you choose the first branch with the max score at the top level; branches searched later that return the same max score may only be returning an upper bound.
Expected Best Move:
(5, 5)
Your Selection: (7, 5)
Test Case Details:
------------------
Heuristic: open_move_score
Depth limit: 1
Initial Board State:
0 1 2 3 4 5 6 7 8
0 | | | | | | | | | |
1 | | | | | | | | | |
2 | | | - | - | - | - | - | | |
3 | | | | - | - | - | - | | |
4 | | | - | - | - | | - | | |
5 | | | - | - | - | | - | | |
6 | | | - | 2 | - | - | - | 1 | |
7 | | | | | - | | | | |
8 | | | | | | | | | |
game._board_state:
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 69]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment