Skip to content

Instantly share code, notes, and snippets.

@bluebear94
Created February 1, 2017 12:27
Show Gist options
  • Save bluebear94/c5c3204159ccd9433d8ecef7a088d3c9 to your computer and use it in GitHub Desktop.
Save bluebear94/c5c3204159ccd9433d8ecef7a088d3c9 to your computer and use it in GitHub Desktop.
( ^ω^ ) 07:25:15 uruwi@uruwi-HP-ENVY-x360-m6-Convertible ~/metasquares-ai
$ ./msqai
First (0) or second (1)? Or just let the AI play both sides (2). 2
AI chose 0 0
Board:
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
Score of player 1 is 0
Score of player 2 is 0
AI chose 0 1
Board:
1 2 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
Score of player 1 is 0
Score of player 2 is 0
AI chose 0 2
Board:
1 2 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
Score of player 1 is 0
Score of player 2 is 0
AI chose 0 3
Board:
1 2 1 2 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
Score of player 1 is 0
Score of player 2 is 0
AI chose 0 4
Board:
1 2 1 2 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
Score of player 1 is 0
Score of player 2 is 0
AI chose 0 5
Board:
1 2 1 2 1 2
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
Score of player 1 is 0
Score of player 2 is 0
AI chose 1 0
Board:
1 2 1 2 1 2
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
Score of player 1 is 0
Score of player 2 is 0
AI chose 1 1
Board:
1 2 1 2 1 2
1 2 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
Score of player 1 is 0
Score of player 2 is 0
AI chose 1 2
Board:
1 2 1 2 1 2
1 2 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
Score of player 1 is 0
Score of player 2 is 0
AI chose 1 3
Board:
1 2 1 2 1 2
1 2 1 2 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
Score of player 1 is 0
Score of player 2 is 0
AI chose 1 4
Board:
1 2 1 2 1 2
1 2 1 2 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
Score of player 1 is 0
Score of player 2 is 0
AI chose 1 5
Board:
1 2 1 2 1 2
1 2 1 2 1 2
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
Score of player 1 is 0
Score of player 2 is 0
AI chose 2 0
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
Score of player 1 is 0
Score of player 2 is 0
AI chose 2 2
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 0 2 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
Score of player 1 is 0
Score of player 2 is 0
AI chose 2 1
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
Score of player 1 is 0
Score of player 2 is 0
AI chose 3 2
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 0 0
0 0 2 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
Score of player 1 is 0
Score of player 2 is 0
AI chose 2 4
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 0 2 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
Score of player 1 is 0
Score of player 2 is 0
AI chose 4 0
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 0 2 0 0 0
2 0 0 0 0 0
0 0 0 0 0 0
Score of player 1 is 0
Score of player 2 is 0
AI chose 4 5
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 0 2 0 0 0
2 0 0 0 0 1
0 0 0 0 0 0
Score of player 1 is 0
Score of player 2 is 0
AI chose 5 1
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 0 2 0 0 0
2 0 0 0 0 1
0 2 0 0 0 0
Score of player 1 is 0
Score of player 2 is 0
AI chose 5 4
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 0 2 0 0 0
2 0 0 0 0 1
0 2 0 0 1 0
Score of player 1 is 0
Score of player 2 is 0
AI chose 5 0
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 0 2 0 0 0
2 0 0 0 0 1
2 2 0 0 1 0
Score of player 1 is 0
Score of player 2 is 0
AI chose 5 5
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 0 2 0 0 0
2 0 0 0 0 1
2 2 0 0 1 1
Score of player 1 is 0
Score of player 2 is 0
AI chose 4 1
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 0 2 0 0 0
2 2 0 0 0 1
2 2 0 0 1 1
Score of player 1 is 0
Score of player 2 is 1
AI chose 5 2
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 0 2 0 0 0
2 2 0 0 0 1
2 2 1 0 1 1
Score of player 1 is 10
Score of player 2 is 1
AI chose 5 3
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 0 2 0 0 0
2 2 0 0 0 1
2 2 1 2 1 1
Score of player 1 is 10
Score of player 2 is 1
AI chose 3 4
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 0 2 0 1 0
2 2 0 0 0 1
2 2 1 2 1 1
Score of player 1 is 10
Score of player 2 is 1
AI chose 3 1
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 2 2 0 1 0
2 2 0 0 0 1
2 2 1 2 1 1
Score of player 1 is 10
Score of player 2 is 1
AI chose 3 3
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 2 2 1 1 0
2 2 0 0 0 1
2 2 1 2 1 1
Score of player 1 is 15
Score of player 2 is 1
AI chose 4 2
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 2 2 1 1 0
2 2 2 0 0 1
2 2 1 2 1 1
Score of player 1 is 15
Score of player 2 is 4
AI chose 4 3
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
0 2 2 1 1 0
2 2 2 1 0 1
2 2 1 2 1 1
Score of player 1 is 17
Score of player 2 is 4
AI chose 3 0
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 0 1 0
2 2 2 1 1 0
2 2 2 1 0 1
2 2 1 2 1 1
Score of player 1 is 17
Score of player 2 is 5
AI chose 2 3
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 1 1 0
2 2 2 1 1 0
2 2 2 1 0 1
2 2 1 2 1 1
Score of player 1 is 18
Score of player 2 is 5
AI chose 2 5
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 1 1 2
2 2 2 1 1 0
2 2 2 1 0 1
2 2 1 2 1 1
Score of player 1 is 18
Score of player 2 is 5
AI chose 3 5
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 1 1 2
2 2 2 1 1 1
2 2 2 1 0 1
2 2 1 2 1 1
Score of player 1 is 18
Score of player 2 is 5
AI chose 4 4
Board:
1 2 1 2 1 2
1 2 1 2 1 2
1 1 2 1 1 2
2 2 2 1 1 1
2 2 2 1 2 1
2 2 1 2 1 1
Score of player 1 is 18
Score of player 2 is 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment