29 lines
566 B
Python
29 lines
566 B
Python
![]() |
from game import Game
|
||
|
#def mainloop(self):
|
||
|
# game = self.game
|
||
|
game = Game()
|
||
|
game.show_board()
|
||
|
boot_color = 'white'
|
||
|
#11 21
|
||
|
a=0
|
||
|
while True:
|
||
|
a = a + 1
|
||
|
print(a)
|
||
|
if game.make_move_boot('white') == 1:
|
||
|
print("Przegrana")
|
||
|
game.show_board()
|
||
|
break
|
||
|
#if game.make_move_rival()==1:
|
||
|
# print("Przegrana")
|
||
|
# break
|
||
|
game.show_board()
|
||
|
print('')
|
||
|
if game.make_move_boot('black') == 1:
|
||
|
print("Przegrana")
|
||
|
game.show_board()
|
||
|
break
|
||
|
game.show_board()
|
||
|
print('')
|
||
|
|
||
|
|