From 9a655ff853ee8a039e194725f3d10c6950c26a97 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 18 Apr 2013 14:05:38 +0200 Subject: [PATCH] Fix counting bug in validate --- erdslangetjie/level.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.34.1