From 2f0f1d173ef9c4c9f30b50f75a53e64ecb7cbf71 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Thu, 15 Aug 2024 15:16:08 -0400 Subject: [PATCH] misc testing setup --- SimHoc.py | 8 ++++++-- hocTests.py | 22 +++++++++++----------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/SimHoc.py b/SimHoc.py index e1ced7d..3eb5d9e 100644 --- a/SimHoc.py +++ b/SimHoc.py @@ -22,8 +22,12 @@ if __name__ == "__main__": # print(atr) # print("----------") - #g = TestGame() - #g.faceoffTest() + g = TestGame() + while not g.Game.gameOver: + g.Game.event() + log = g.Game.eventLogOut() + for line in log: + print(line) cookie = auzh() diff --git a/hocTests.py b/hocTests.py index 32403c2..49d25b6 100644 --- a/hocTests.py +++ b/hocTests.py @@ -93,16 +93,16 @@ class TestGame(object): def __init__(self): awayRoster = [ - player.Player("Laika", 93), - player.Player("Vivi", 16), - player.Player("Jorts", 75), - player.Player("Yuki", 23), - player.Player("Konecny", 96), - player.Player("Laika", 93), - player.Player("Vivi", 16), - player.Player("Jorts", 75), - player.Player("Yuki", 23), - player.Player("Konecny", 11) + player.Player("April", 69), + player.Player("Abyss", 16), + player.Player("chloe!!", 20), + player.Player("Byte", 8), + player.Player("Myno", 18), + player.Player("April", 69), + player.Player("Abyss", 16), + player.Player("chloe!!", 20), + player.Player("Byte", 8), + player.Player("Myno", 18), ] homeRoster = [ player.Player("Landeskog", 92), @@ -118,7 +118,7 @@ class TestGame(object): ] - aTeam = team.Team(awayRoster, [player.Player('Artemis', 17)], "Vail Powder", "PDR") + aTeam = team.Team(awayRoster, [player.Player('Artemis', 17)], "Cohost Eggbugs", "EGG") hTeam = team.Team(homeRoster, [player.Player('Kuemper', 35)], "Colorado Avalanche", "COL") self.Game = game.Game(aTeam, hTeam)