Skip to content

Commit

Permalink
modify testperf for 2 agents
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyjtann committed Feb 7, 2019
1 parent c0d4c40 commit 5a9db9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions testperf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@

""" =========== *Remember to import your agent!!! =========== """
from randomplayer import RandomPlayer
from smartwarrior import SmartWarrior
# from smartwarrior import SmartWarrior
""" ========================================================= """

""" Example---To run testperf.py with random warrior AI and smart warrior AI
$ python testperf.py -n1 "Random Warrior" -a1 RandomPlayer -n2 "Smart Warrior" -a2 smartwarrior
""" Example---To run testperf.py with random warrior AI against itself.
$ python testperf.py -n1 "Random Warrior 1" -a1 RandomPlayer -n2 "Random Warrior 2" -a2 RandomPlayer
"""

def testperf(agent_name1, agent1, agent_name2, agent2):
Expand Down

0 comments on commit 5a9db9d

Please sign in to comment.