1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| from tictactoe import pruefe_comination, has_spieler_gewonnen, PL1, PL2, EMPTY
|
|
| test_board = [
| [PL1, PL1, PL1],
| [EMPTY, PL2, EMPTY],
| [EMPTY, PL2, EMPTY]
| ]
|
|
| result = pruefe_comination( (0,0,"hvd"), test_board )
|
| print(result)
|
| result = has_spieler_gewonnen(PL1, test_board)
| print(result)
|
|