ff8cc9e75f5ddb1473efff36d3f33c092d98391a,chapter01/TicTacToe.py,Judger,play,#Judger#Any#,167
Before Change
self.feedCurrentState()
while True:
// set current player
if self.currentPlayer == self.p1:
self.currentPlayer = self.p2
else:
self.currentPlayer = self.p1
if show:
self.currentState.show()
[i, j, symbol] = self.currentPlayer.takeAction()
self.currentState = self.currentState.nextState(i, j, symbol)
After Change
self.reset()
current_state = State()
self.p1.set_state(current_state)
self.p2.set_state(current_state)
while True:
player = next(alternator)
if print:
current_state.print()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: home-assistant/home-assistant
Commit Name: 50b492c64a75e1523de058f7fd5d829b1b51f5c7
Time: 2014-04-29
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/remote.py
Class Name: StateMachine
Method Name: set
Project Name: AllenCellModeling/pytorch_fnet
Commit Name: 4428ba7b4c5a20c584c03ce8adaef735bf00951b
Time: 2017-07-28
Author: chek.o@outlook.com
File Name: util/data/dataset.py
Class Name: DataSet
Method Name: _load