Skip to content

Latest commit

 

History

History
123 lines (96 loc) · 2.04 KB

README.md

File metadata and controls

123 lines (96 loc) · 2.04 KB

tic-tac-toe game

algorithm: monte carlo tree search , ui:pygame

gravity4bonuschess game

algorithm: monte carlo tree search

[[[0. 0. 0. 0.] [0. 0. 0. 0.] [0. 0. 0. 0.] [0. 0. 0. 1.]]

[[0. 0. 0. 0.] [0. 0. 0. 0.] [0. 0. 0. 0.] [0. 0. 0. 0.]]

[[0. 0. 0. 0.] [0. 0. 0. 0.] [0. 0. 0. 0.] [0. 0. 0. 0.]]

[[0. 0. 0. 0.] [0. 0. 0. 0.] [0. 0. 0. 0.] [0. 0. 0. 0.]]]
Your move(x,y): 0,0

rival's move: x:3 y:1 z:0 v:1

[[[-1. 0. 0. 0.] [ 0. 0. 0. 0.] [ 0. 0. 0. 0.] [ 0. 1. 0. 1.]]

[[ 0. 0. 0. 0.] [ 0. 0. 0. 0.] [ 0. 0. 0. 0.] [ 0. 0. 0. 0.]]

[[ 0. 0. 0. 0.] [ 0. 0. 0. 0.] [ 0. 0. 0. 0.] [ 0. 0. 0. 0.]]

[[ 0. 0. 0. 0.] [ 0. 0. 0. 0.] [ 0. 0. 0. 0.] [ 0. 0. 0. 0.]]]

Your move(x,y): 1,2
rival's move: x:1 y:0 z:0 v:1

[[[-1. 0. 0. 0.] [ 1. 0. -1. 0.] [ 0. 0. 0. 0.] [ 0. 1. 0. 1.]]

[[ 0. 0. 0. 0.] [ 0. 0. 0. 0.] [ 0. 0. 0. 0.] [ 0. 0. 0. 0.]]

[[ 0. 0. 0. 0.] [ 0. 0. 0. 0.] [ 0. 0. 0. 0.] [ 0. 0. 0. 0.]]

[[ 0. 0. 0. 0.] [ 0. 0. 0. 0.] [ 0. 0. 0. 0.] [ 0. 0. 0. 0.]]]

Your move(x,y): 0,1

rival's move: x:3 y:0 z:0 v:1

[[[-1. -1. 0. 0.] [ 1. 0. -1. 0.] [ 0. 0. 0. 0.] [ 1. 1. 0. 1.]]

[[ 0. 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