Skip to content

Commit 6a90e0b

Browse files
committed
Figured out how to get duel functionality
1 parent ed3c0ed commit 6a90e0b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Board.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ class Scatter_Text_widget(FloatLayout):
88

99

1010
def on_touch_down(self, touch):
11-
position = find_position()
12-
pos_chess = position.chess_position(touch.pos)
13-
print(pos_chess)
11+
res = super(Scatter_Text_widget, self).on_touch_down(touch)
12+
if res:
13+
position = find_position()
14+
pos_chess = position.chess_position(touch.pos)
15+
print(pos_chess)
16+
return res
1417

1518
def on_touch_up(self, touch):
1619
position = find_position()

0 commit comments

Comments
 (0)