Skip to content

Commit

Permalink
tester works
Browse files Browse the repository at this point in the history
  • Loading branch information
snarb committed May 2, 2017
1 parent 5ae1184 commit 4c7ffd8
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions m3.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class CFRtrainer:
BETA = 0.00
SAMPLE_SIZE = 16 #16 #24
SAMPLE_SIZE = 24 #16 #24

def __init__(self):
self.playerOneTree = GameTree(CfrNode)
Expand Down Expand Up @@ -90,26 +90,41 @@ def Train(self):



#
# #
# trainer = CFRtrainer()
# trainer.Train()
#
# #
# print("Player one avg strategy:")
# trainer.playerOneTree.PrintAvgStrategy()
# print("Player one best resp strategy:")
# trainer.playerOneTree.PrintBestResp()
# print("Player one regrets:")
# trainer.playerOneTree.PrintRegrets()
#
#
# # print("Player one best resp strategy:")
# # trainer.playerOneTree.PrintBestResp()
# # print("Player one regrets:")
# # trainer.playerOneTree.PrintRegrets()
# #
# #
# print("----------------------")
# print("Player two avg strategy:")
# trainer.playerTwoTree.PrintAvgStrategy()
# print("Player two best resp strategy:")
# trainer.playerTwoTree.PrintBestResp()
# print("Player two regrets:")
# trainer.playerTwoTree.PrintRegrets()
# # print("Player two best resp strategy:")
# # trainer.playerTwoTree.PrintBestResp()
# # print("Player two regrets:")
# # trainer.playerTwoTree.PrintRegrets()
# #
# #
# # print("done")
#
#
# if (trainer.kuhn.IsPlayerOneCloseToNash(trainer.playerOneTree)):
# print("Player one is in Nash")
# else:
# print("Player one is not in Nash")
#
# if(trainer.kuhn.IsPlayerTwoCloseToNash(trainer.playerTwoTree)):
# print("Player two is in Nash")
# else:
# print("Player two is not in Nash")
#
#
# print("done")
#
#

0 comments on commit 4c7ffd8

Please sign in to comment.