Esempio n. 1
0
File: test.py Progetto: EdKong/tron
 def test_is_game_over(self):
     board = tronutils.read_board('maps/test-board.txt')
     self.assertFalse(MyTronBot.is_game_over(board))
     board.board[2] = '######'
     self.assertTrue(MyTronBot.is_game_over(board))
Esempio n. 2
0
 def test_is_game_over(self):
     board = tronutils.read_board('maps/test-board.txt')
     self.assertFalse(MyTronBot.is_game_over(board))
     board.board[2] = '######'
     self.assertTrue(MyTronBot.is_game_over(board))