-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: First game between human and bot made by this repo!
- Loading branch information
Showing
4 changed files
with
67 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from generals.agents.random_agent import RandomAgent | ||
from generals.agents import ExpanderAgent | ||
from generals.remote import GeneralsIOClient | ||
|
||
|
||
if __name__ == "__main__": | ||
agent = RandomAgent() | ||
agent = ExpanderAgent() | ||
with GeneralsIOClient(agent, "user_id9l") as client: | ||
# register call will fail when given username is already registered | ||
client.register_agent("[Bot]MyEpicUsername") | ||
client.join_private_lobby("queueID") | ||
# client.register_agent("[Bot]MyEpicUsername") | ||
client.join_private_lobby("6ngz") | ||
client.join_game() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import warnings | ||
from typing import Any | ||
|
||
import gymnasium as gym | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters