Ejemplo n.º 1
0
 def test_player_after(self):
     player = gametools.player_after(self.game, self.player)
     self.assertEqual(player, self.game["players"][1])
     player = gametools.player_after(self.game, player)
     self.assertEqual(player, self.game["players"][2])
     player = gametools.player_after(self.game, player)
     self.assertEqual(player, self.game["players"][0])
Ejemplo n.º 2
0
 def test_turn_rotates_after_playing_tile(self):
     gametools.play_tile(self.game, self.player, self.player["rack"][0])
     self.assertEqual(gametools.active_player(self.game), gametools.player_after(self.game, self.player))