Updated brandubh capture logic
This commit is contained in:
parent
71ae985b68
commit
dbd04e75a6
|
@ -200,7 +200,9 @@ class Brandubh:
|
||||||
break
|
break
|
||||||
steps += 1
|
steps += 1
|
||||||
if steps % 2 == 0:
|
if steps % 2 == 0:
|
||||||
if self.board[start[0]][start[1]].lower() in [friend, ' * '] and start != [3,3]:
|
if self.board[start[0]][start[1]].lower() in [friend, ' * ']:
|
||||||
|
if start == [3,3] and self.board[start[0]][start[1]] == ' * ':
|
||||||
|
break
|
||||||
self.board[prev[0]][prev[1]] = ' - '
|
self.board[prev[0]][prev[1]] = ' - '
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user