9ba03a34fea5197fd779f708754cf1ddbd718edc,tictactoe_3d/TicTacToePlayers.py,HumanTicTacToePlayer,play,#HumanTicTacToePlayer#,28
Before Change
valid = self.game.getValidMoves(board, 1)
for i in range(len(valid)):
if valid[i]:
print(int(i/self.game.n) , int(i%self.game.n))
while True:
// Python 3.x
a = input()
After Change
// a = raw_input()
z,x,y = [int(x) for x in a.split(" ")]
boardvalues = np.arange(self.n*self.n*self.n).reshape(self.n,self.n,self.n)
a = boardvalues[z][x][y]
if valid[a]:
break
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: suragnair/alpha-zero-general
Commit Name: 9ba03a34fea5197fd779f708754cf1ddbd718edc
Time: 2020-04-24
Author: 41483463+goshawk22@users.noreply.github.com
File Name: tictactoe_3d/TicTacToePlayers.py
Class Name: HumanTicTacToePlayer
Method Name: play
Project Name: Ghadjeres/DeepBach
Commit Name: caf7f0ae508bd8a5212d0ed5a928ad667c57efd8
Time: 2017-07-12
Author: bohumir.zamecnik@gmail.com
File Name: data_utils.py
Class Name:
Method Name: generator_from_raw_dataset
Project Name: tyarkoni/pliers
Commit Name: 005968dcfbd2a8f70d8ea3957c8abba60a12492d
Time: 2018-05-15
Author: quinten.mcnamara@gmail.com
File Name: pliers/filters/video.py
Class Name: FrameSamplingFilter
Method Name: _filter