Skip to content

Commit

Permalink
Fix default track type
Browse files Browse the repository at this point in the history
Signed-off-by: yzamir <kobi.zamir@gmail.com>
  • Loading branch information
yaacov committed Sep 12, 2023
1 parent f936cc7 commit d41e363
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions rose/client/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def load_driver_module(driver_path):
spec.loader.exec_module(driver_module)
return driver_module


def main():
"""
Main function to initialize and run the driver HTTP server.
Expand Down
4 changes: 2 additions & 2 deletions rose/server/game/test_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class SinglePlayerTest(object):
obstacle = None

def setup_method(self, m):
self.track = track.Track(False)
self.track = track.Track()
self.player = player.Player("A", car=0, lane=0)
self.x = self.player.x
self.y = self.player.y
Expand Down Expand Up @@ -266,7 +266,7 @@ class TestCollisions(object):
"""

def setup_method(self, m):
self.track = track.Track(False)
self.track = track.Track()
self.player1 = player.Player("A", car=0, lane=0)
self.player2 = player.Player("B", car=0, lane=1)

Expand Down
2 changes: 1 addition & 1 deletion rose/server/game/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class Track(object):
def __init__(self, is_track_random):
def __init__(self, is_track_random=False):
self._matrix = None
self.is_track_random = is_track_random
self.reset()
Expand Down

0 comments on commit d41e363

Please sign in to comment.