UPDATE: Changed game class to match class

This commit is contained in:
2025-03-09 19:16:42 +01:00
parent 2c860be64b
commit d3cf669af3
2 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import demoparser2
from game import Game
from match import Match
from player import Player
demo_parser = demoparser2.DemoParser("demo.dem")
@@ -14,13 +14,13 @@ class Parser:
if __name__ == "__main__":
parser = Parser("demo.dem")
game = Game("de_dust2", parser.demo_info)
match = Match("de_dust2", parser.demo_info)
for index, row in parser.players.iterrows():
game.add_player(Player(row["name"], row["steamid"]))
match.add_player(Player(row["name"], row["steamid"]))
while game.tick < game.max_tick:
game.next_tick()
while match.tick < match.max_tick:
match.next_tick()