Skip to content

madest92/four_in_row

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

four_in_row

Bot for game https://playground.riddles.io/competitions/four-in-a-row/how-to-play

Test move

# cat game.txt | ./main.py 


########################################
	Round 15 (depth 8)
########################################
['.', '0', '1', '0', '1', '1', '.']
['.', '1', '0', '0', '0', '1', '.']
['.', '0', '1', '1', '0', '0', '.']
['.', '1', '0', '0', '1', '1', '.']
['.', '1', '1', '1', '0', '0', '.']
['1', '1', '0', '0', '1', '0', '0']
 
{0: 100000, 6: -600000}
Move 0 - score 100000

WIN player0
place_disc 0

Game for bot

# ./start_game.sh
Round: 2
Last move: [3] .,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.
place_disc 3
-------------------
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . 0 . . .
-------------------
0 1 2 3 4 5 6

Enter move[0-6]: 
1
-------------------
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. 1 . 0 . . .
-------------------
0 1 2 3 4 5 6
Round: 3
Last move: [4] .,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,1,.,0,.,.,.
{0: -100, 1: 0, 2: -300, 3: -300, 4: 200, 5: 100, 6: 0}
Move 4 - score 200
-------------------
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. 1 . 0 0 . .
-------------------
0 1 2 3 4 5 6

Enter move[0-6]: 
1
-------------------
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. 1 . . . . .
. 1 . 0 0 . .
-------------------
0 1 2 3 4 5 6
Round: 4
Last move: [5] .,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,1,.,.,.,.,.,.,1,.,0,0,.,.

WIN player0
-------------------
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. 1 . . . . .
. 1 . 0 0 0 .
-------------------
0 1 2 3 4 5 6

WIN player0

Releases

No releases published

Packages

 
 
 

Contributors