Skip to content

Instantly share code, notes, and snippets.

@yuanmai
Created July 17, 2012 13:48
Show Gist options
  • Save yuanmai/3129486 to your computer and use it in GitHub Desktop.
Save yuanmai/3129486 to your computer and use it in GitHub Desktop.
5x5 Tic Tac Toe
:-:-:-:-:-
:-:-:-:-:-
:-:-:-:-:-
:-:-:-:-:-
:-:-:-:-:-
move :X [1 0]
0 plies generated by AI (by far)
:-:-:-:-:-
:X:-:-:-:-
:-:-:-:-:-
:-:-:-:-:-
:-:-:-:-:-
move :O [0 0]
20670 plies generated by AI (by far)
:O:-:-:-:-
:X:-:-:-:-
:-:-:-:-:-
:-:-:-:-:-
:-:-:-:-:-
move :X [4 2]
20670 plies generated by AI (by far)
:O:-:-:-:-
:X:-:-:-:-
:-:-:-:-:-
:-:-:-:-:-
:-:-:X:-:-
move :O [0 2]
42017 plies generated by AI (by far)
:O:-:O:-:-
:X:-:-:-:-
:-:-:-:-:-
:-:-:-:-:-
:-:-:X:-:-
move :X [4 0]
42017 plies generated by AI (by far)
:O:-:O:-:-
:X:-:-:-:-
:-:-:-:-:-
:-:-:-:-:-
:X:-:X:-:-
move :O [0 1]
45917 plies generated by AI (by far)
:O:O:O:-:-
:X:-:-:-:-
:-:-:-:-:-
:-:-:-:-:-
:X:-:X:-:-
"Elapsed time: 7423.865 msecs"
TRACE t3088: (yuan.game.alpha-beta-pruning/ab-get-rating-max 1 -1 {:board {:x #{0 1}, :o #{3 4 7}}, :moves ({:board #, :moves #} {:board #, :moves #} {:board #, :moves #} {:board #, :moves #})})
TRACE t3088: => (1)
TRACE t3089: (yuan.game.alpha-beta-pruning/ab-get-rating-max 1 -1 {:board {:x #{0 1}, :o #{3 4 7}}, :moves ({:board #, :moves #} {:board #, :moves #} {:board #, :moves #} {:board #, :moves #})})
TRACE t3089: => (1)
TRACE t3090: (yuan.game.alpha-beta-pruning/ab-get-rating-max 1 -1 {:board {:x #{0 1}, :o #{3 4 7}}, :moves ({:board #, :moves #} {:board #, :moves #} {:board #, :moves #} {:board #, :moves #})})
TRACE t3090: => (1)
TRACE t3091: (yuan.game.alpha-beta-pruning/ab-get-rating-max 1 -1 {:board {:x #{0 1}, :o #{3 4 7}}, :moves ({:board #, :moves #} {:board #, :moves #} {:board #, :moves #} {:board #, :moves #})})
TRACE t3091: => (1)
TRACE t3092: (yuan.game.alpha-beta-pruning/ab-get-rating-max 1 -1 {:board {:x #{0 1}, :o #{3 4 7}}, :moves ({:board #, :moves #} {:board #, :moves #} {:board #, :moves #} {:board #, :moves #})})
TRACE t3092: => (1)
TRACE :ratings: (1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment