e001a978a88cdeb352404e653704521e343c78f2,game/board.py,Board,make_move,#Board#Any#Any#,104
Before Change
to_flip = []
if (tile >= 0) and (tile < WIDTH*HEIGHT):
while self.pieces[tile].get_state() != BOARD:
to_flip.append(self.pieces[tile])
if self.outside_board(tile, d):
break
After Change
if len(blanks)>0:
blank = blanks[0]
t = True
for i in to_flip:
if i==our:
break
if i==blank:
t=False
break
if not t:
continue
for i in to_flip:
if i==our:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: suragnair/alpha-zero-general
Commit Name: e001a978a88cdeb352404e653704521e343c78f2
Time: 2017-12-04
Author: jjw.megha@gmail.com
File Name: game/board.py
Class Name: Board
Method Name: make_move
Project Name: elfi-dev/elfi
Commit Name: 6d386332daee7466891047c3fc374ccedadeb4ce
Time: 2017-09-05
Author: jarno.lintusaari@aalto.fi
File Name: tests/functional/test_randomness.py
Class Name:
Method Name: test_get_sub_seed
Project Name: ray-project/ray
Commit Name: 86cff17e7ef1b355e1ab4862ccd664ed4c856227
Time: 2020-03-30
Author: rliaw@berkeley.edu
File Name: python/ray/util/sgd/torch/torch_trainer.py
Class Name: TorchTrainer
Method Name: get_model