Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supergecki config.ini rename #60

Merged
merged 4 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion default_config.ini → config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ thrust=0.1
# center - the center of the map
# player/<player_index>/<seeker_index> - the specified seeker of the specified player
# goal/<goal_index> - the specified goal
relative-drawing-to=center
relative-drawing-to=center
2 changes: 1 addition & 1 deletion freeze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ build() {
echo "Building projekt ..."
pip install -r requirements.txt
pip install cx_Freeze
cxfreeze -c run_seekers.py --target-dir dist --include-files default_config.ini
cxfreeze -c run_seekers.py --target-dir dist --include-files config.ini
}

start() {
Expand Down
4 changes: 2 additions & 2 deletions run_seekers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def main():
parser.add_argument("--debug", action="store_true", help="Enable debug mode. This will enable debug drawing.")
parser.add_argument("-address", "-a", type=str, default="localhost:7777",
help="Address of the server. (default: localhost:7777)")
parser.add_argument("-config", "-c", type=str, default="default_config.ini",
help="Path to the config file. (default: default_config.ini)")
parser.add_argument("-config", "-c", type=str, default="config.ini",
help="Path to the config file. (default: config.ini)")
parser.add_argument("-config-override", "-co", action="append",
help="Override a config option. Use the form option=value, e.g. global.seed=43.")
parser.add_argument("-loglevel", "-log", "-l", type=str, default="INFO",
Expand Down
6 changes: 3 additions & 3 deletions seekers/tests/test_seekers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class TestSeekers(unittest.TestCase):
def test_seekers(self):
"""Test that a SeekersGame can be created and run without errors."""
config = Config.from_filepath("default_config.ini")
config = Config.from_filepath("config.ini")

config.global_playtime = 200
config.global_speed = 20
Expand Down Expand Up @@ -68,7 +68,7 @@ def start_grpc_client(filepath: str, address: str, joined_event: threading.Event

def grpc_game(playtime: int, speed: int, players: int, seed: int, filepaths: list[str],
address: str = "localhost:7778") -> dict[str, int]:
config = Config.from_filepath("default_config.ini")
config = Config.from_filepath("config.ini")

config.global_fps = 1000
config.global_playtime = playtime
Expand Down Expand Up @@ -106,7 +106,7 @@ def grpc_game(playtime: int, speed: int, players: int, seed: int, filepaths: lis


def nogrpc_game(playtime: int, speed: int, players: int, seed: int, filepaths: list[str]) -> dict[str, int]:
config = Config.from_filepath("default_config.ini")
config = Config.from_filepath("config.ini")

config.global_fps = 1000
config.global_wait_for_players = True
Expand Down
Loading