Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aca6b6a

Browse files
committed
HOTFIX: gtp_wapper shift node with next game positions
1 parent 7e5620b commit aca6b6a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

‎main.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
#!/home/hangyu5/anaconda2/envs/py3dl/bin/python
2+
'''
13
#!/Users/yuhang/anaconda3/envs/py3dl/bin/python
4+
'''
25
"""
36
After installing all requirement,
47
Type 'which python' in your terminal.

‎utils/gtp_wrapper.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def make_move(self, color, vertex):
5050
coords = utils.parse_pygtp_coords(vertex)
5151
self.accomodate_out_of_turn(color)
5252
try:
53-
self.position.play_move(coords,mutate=True, color=translate_gtp_colors(color))
54-
self.shift_node(move=coords,pos=self.position)
53+
self.position.play_move(coords,mutate=True, color=translate_gtp_colors(color))
54+
self.shift_node(move=coords,pos_to_shift=self.position)
5555
except:
5656
return False
5757
return True

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /