コード例 #1
0
    def generate_cube(self, move_depth):
        # get cube and define as cube
        cube = pc.Cube()

        for action_num in cube_shuffle(move_depth):
            # Gen cube
            cube(ACTIONS[action_num])

        return cube
コード例 #2
0
    def generate_cube_with_info(self, move_depth):
        self.would_be_win_acts_list = np.array(
            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
        # get cube and define as cube
        cube = pc.Cube()

        for action_num in cube_shuffle(move_depth):
            # Gen cube
            cube(ACTIONS[action_num])
            self.would_be_win_acts_list[action_num - 6] += 1

        return cube, self.would_be_win_acts_list
コード例 #3
0
 def generate_moves(self, move_depth):
     actions_nums = cube_shuffle(move_depth)
     self.buffer.append([None, actions_nums])