Skip to content

Commit

Permalink
gameplay stuff added
Browse files Browse the repository at this point in the history
  • Loading branch information
mahi97 committed Oct 26, 2021
1 parent 375b37b commit 7a3669e
Show file tree
Hide file tree
Showing 4 changed files with 313 additions and 586 deletions.
7 changes: 4 additions & 3 deletions pz_risk/arena.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
from risk_env import env
from agents.greedy import GreedyAgent
from agents.random import RandomAgent
from agents import GreedyAgent, RandomAgent, ModelAgent
from loguru import logger
import matplotlib.pyplot as plt

e = env()
e.reset()

players = [GreedyAgent(i) for i in range(2)]
players += [RandomAgent(2 + i) for i in range(4)]
players += [GreedyAgent(2 + i) for i in range(2)]
players += [RandomAgent(4 + i) for i in range(2)]
winner = -1
for agent in e.agent_iter():
obs, rew, done, info = e.last()
Expand Down
Loading

0 comments on commit 7a3669e

Please sign in to comment.