Skip to content

Commit e4ea002

Browse files
author
Satvik Golechha
committed
merge
1 parent e2af547 commit e4ea002

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ The aim is to simulate the popular multiplayer game "Among Us" using AI agents a
2727
3. Install dependencies:
2828
```bash
2929
pip install -r requirements.txt
30+
pip install numpy pandas networkx streamlit dotenv requests aiohttp
3031
```
3132

3233
## Run Games

among-agents/amongagents/envs/game.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,6 @@ def initialize_agents(self):
169169
self.agents = []
170170
for i, player in enumerate(self.players):
171171
if self.include_human and i == random_idx:
172-
<<<<<<< HEAD
173-
self.agents.append(HumanAgent(player))
174-
print(f"{i} Initializing player {player.name} with identity {player.identity} and LLM choice {self.agents[-1].model}")
175-
=======
176172
# Create HumanAgent with game_id set to game_index
177173
human_agent = HumanAgent(player, game_index=self.game_index)
178174
# Set the game_id attribute to match the game_index
@@ -183,7 +179,6 @@ def initialize_agents(self):
183179
# Update max_steps for human agent
184180
if hasattr(self.agents[-1], 'update_max_steps'):
185181
self.agents[-1].update_max_steps(self.game_config.get("max_timesteps", 50))
186-
>>>>>>> 0174da6c2c3d3921bdacd805e6a4b721e1205517
187182
else:
188183
self.agents.append(agent_dict[self.agent_config[player.identity]](player))
189184
print(f"{i} Initializing player {player.name} with identity {player.identity} and LLM choice {self.agents[-1].model}")

utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def setup_experiment(experiment_name, LOGS_PATH, DATE, COMMIT_HASH, DEFAULT_ARGS
3737
experiment_file.write(f"Experiment index: {next_index}\n")
3838

3939
os.environ["EXPERIMENT_PATH"] = experiment_path
40-
os.environ["STREAMLIT"] = str(DEFAULT_ARGS["Streamlit"])
40+
os.environ["STREAMLIT"] = str(DEFAULT_ARGS.get("streamlit", False))
4141
os.environ["EXPERIMENT_INDEX"] = str(next_index)
4242

4343
return experiment_name

0 commit comments

Comments
 (0)