From dbd04e75a66703e188fa3801432b686bda051b9f Mon Sep 17 00:00:00 2001 From: sloumdrone Date: Sat, 25 May 2019 09:39:08 -0700 Subject: [PATCH] Updated brandubh capture logic --- brandubh.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/brandubh.py b/brandubh.py index 242ec36..1228d67 100644 --- a/brandubh.py +++ b/brandubh.py @@ -200,7 +200,9 @@ class Brandubh: break steps += 1 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]] = ' - ' continue else: