ff8cc9e75f5ddb1473efff36d3f33c092d98391a,chapter01/TicTacToe.py,Judger,play,#Judger#Any#,167
Before Change
[i, j, symbol] = self.currentPlayer.takeAction()
self.currentState = self.currentState.nextState(i, j, symbol)
hashValue = self.currentState.getHash()
self.currentState, isEnd = self.allStates[hashValue]
self.feedCurrentState()
if isEnd:
if self.feedback:
self.giveReward()
After Change
if print:
current_state.print()
[i, j, symbol] = player.act()
next_state_hash = current_state.next_state(i, j, symbol).hash()
current_state, is_end = all_states[next_state_hash]
self.p1.set_state(current_state)
self.p2.set_state(current_state)
if is_end:
if print:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: ShangtongZhang/reinforcement-learning-an-introduction
Commit Name: ff8cc9e75f5ddb1473efff36d3f33c092d98391a
Time: 2018-08-05
Author: zhangshangtong.cpp@icloud.com
File Name: chapter01/TicTacToe.py
Class Name: Judger
Method Name: play
Project Name: markovmodel/PyEMMA
Commit Name: b69a4513d333266b032e11f9563d6bd14830aa86
Time: 2018-06-21
Author: m.scherer@fu-berlin.de
File Name: conftest.py
Class Name:
Method Name: pytest_collection_modifyitems
Project Name: scipy/scipy
Commit Name: 06cd6e5d439364383937a0cfc2896872e3a56547
Time: 2011-10-01
Author: pav@iki.fi
File Name: scipy/sparse/sputils.py
Class Name:
Method Name: upcast