From c07b60a65c13a07b79f6b10c150a99cb2ddfb1bd Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Fri, 9 May 2014 16:51:44 +0300 Subject: [PATCH] Implement for All in a Row too. --- pysollib/hint.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pysollib/hint.py b/pysollib/hint.py index bb83e07d..494a77e2 100644 --- a/pysollib/hint.py +++ b/pysollib/hint.py @@ -1037,9 +1037,11 @@ class BlackHoleSolver_Hint: # # import pdb; pdb.set_trace() - card = self.game.s.foundations[0].cards[-1] - if card: - board += 'Foundations: ' + self.card2str1(card) + '\n' + cards = self.game.s.foundations[0].cards + s = '-' + if (len(cards) > 0): + s = self.card2str1(cards[-1]) + board += 'Foundations: ' + s + '\n' for s in self.game.s.rows: b = ''