This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#matrix map of the board is not a real matrix ;-) | |
#initialized to 0 <-> empty board | |
mat=[0, 0, 0, | |
0, 0, 0, | |
0, 0, 0] | |
#map_board to map the index of the input in the matrix map | |
map_board=['A1', 'B1', 'C1', | |
'A2', 'B2', 'C2', | |
'A3', 'B3', 'C3'] |