From: Neil Date: Thu, 18 Apr 2013 12:05:38 +0000 (+0200) Subject: Fix counting bug in validate X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=9a655ff853ee8a039e194725f3d10c6950c26a97;p=erdslangetjie.git Fix counting bug in validate --- diff --git a/erdslangetjie/level.py b/erdslangetjie/level.py index 4f8059e..fd039f9 100644 --- a/erdslangetjie/level.py +++ b/erdslangetjie/level.py @@ -73,9 +73,9 @@ class Level(object): exit_points = 0 for line in self._data: if ENTRY in line: - entry_points += 1 + entry_points += line.count(ENTRY) if EXIT in line: - exit_points += 1 + exit_points += line.count(EXIT) if entry_points == 0: raise RuntimeError('No entry point') if entry_points > 1: