Rename place_stone to play_move
This commit is contained in:
@ -47,7 +47,7 @@ class Goban:
|
|||||||
|
|
||||||
# fixme - somewhere in this or its component functions we need to
|
# fixme - somewhere in this or its component functions we need to
|
||||||
# identify ko points :)
|
# identify ko points :)
|
||||||
def place_stone(self, pos):
|
def play_move(self, pos):
|
||||||
rpos = self._real_pos(pos)
|
rpos = self._real_pos(pos)
|
||||||
|
|
||||||
if not self._valid_move(rpos):
|
if not self._valid_move(rpos):
|
||||||
|
2
pygo.py
2
pygo.py
@ -115,7 +115,7 @@ def main():
|
|||||||
|
|
||||||
if x <= board_size:
|
if x <= board_size:
|
||||||
if event.button == 1:
|
if event.button == 1:
|
||||||
gb.place_stone((row, col))
|
gb.play_move((row, col))
|
||||||
|
|
||||||
if event.type == USEREVENT:
|
if event.type == USEREVENT:
|
||||||
gb.elapsed_time += 1
|
gb.elapsed_time += 1
|
||||||
|
Reference in New Issue
Block a user