-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
18 lines (14 loc) · 578 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Tests the model against multiple strategies
from RPS_game import play, mrugesh, abbey, quincy, kris, human, random_player
from RPS import player
from unittest import main
play(player, quincy, 1000)
play(player, abbey, 1000)
play(player, kris, 1000)
play(player, mrugesh, 1000)
# Uncomment line below to play interactively against a bot:
# play(human, abbey, 20, verbose=True)
# Uncomment line below to play against a bot that plays randomly:
# play(human, random_player, 1000)
# Uncomment line below to run unit tests automatically
# main(module='test_module', exit=False)