Ejemplo n.º 1
0
class TestGame(TestCase):
    def setUp(self):
        self.game = Game()
    def test_game_init(self):
        self.assertEqual(self.game.actors, [])
        self.assertEqual(self.game.resources, [])
        self.assertEqual(self.game.event_queue, deque())
    def test_new_game(self):
        self.game.new_game(number_actors = 2, number_turns = 1)
        self.assertEqual(len(self.game.actors), 2)
        self.assertEqual(self.game.turn, 1)
Ejemplo n.º 2
0
 def setUp(self):
     self.game = Game()
Ejemplo n.º 3
0
def main():
    #Start the game here
    esotera = Game()
    esotera.new_game()