Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, name, state_size, action_size):
self.action_size = action_size

def act(self, state, tau):
action = input('Enter your chosen action: ')
action = int(input('Enter your chosen action: '))
pi = np.zeros(self.action_size)
pi[action] = 1
value = None
Expand Down Expand Up @@ -225,4 +225,4 @@ def buildMCTS(self, state):

def changeRootMCTS(self, state):
lg.logger_mcts.info('****** CHANGING ROOT OF MCTS TREE TO %s FOR AGENT %s ******', state.id, self.name)
self.mcts.root = self.mcts.tree[state.id]
self.mcts.root = self.mcts.tree[state.id]