ba32b30cb4c43393b16ec3c7e9cb2c2a8808c690,strategies.py,MCTSPlayerMixin,show_path_to_root,#MCTSPlayerMixin#Any#,197

Before Change


        if len(pos.recent) == 0:
            return
        moves = list(map(coords.to_human_coord,
                         [move.move for move in pos.recent[self.root.position.n:]]))

    def should_resign(self):
        """Returns true if the player resigned.  No further moves should be played"""

After Change


        fmt = lambda move: "{}-{}".format("b" if move.color == 1 else "w",
                                          coords.to_human_coord(move.move))
        path = " ".join(fmt(move) for move in pos.recent[-diff:]) 
        if node.position.n >= MAX_DEPTH:
            path += " (depth cutoff reached) %0.1f" % node.position.score()
        elif node.position.is_game_over():
            path += " (game over) %0.1f" % node.position.score()
        return path

    def should_resign(self):
        """Returns true if the player resigned.  No further moves should be played"""
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/minigo
Commit Name: ba32b30cb4c43393b16ec3c7e9cb2c2a8808c690
Time: 2018-02-03
Author: andrew.m.jackson@gmail.com
File Name: strategies.py
Class Name: MCTSPlayerMixin
Method Name: show_path_to_root


Project Name: numenta/NAB
Commit Name: 4108d67c8343661f5333928072f3d047805191dd
Time: 2014-08-15
Author: jgokhale@jaygokhalesmbp.corp.numenta.com
File Name: nab/run.py
Class Name:
Method Name: main


Project Name: EpistasisLab/tpot
Commit Name: d554d2ce78425cc70f690ad76972949c94fc6a7e
Time: 2016-08-23
Author: rso@randalolson.com
File Name: tpot/tpot.py
Class Name:
Method Name: main