From 5d47b74d949fd8647e2071f55b264a003a83e8b1 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 6 May 2016 12:41:22 +0200 Subject: Prolog: renumber and fix CLP(FD) problems --- prolog/problems/clp_fd/puzzle_momson_2/common.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'prolog/problems/clp_fd/puzzle_momson_2') diff --git a/prolog/problems/clp_fd/puzzle_momson_2/common.py b/prolog/problems/clp_fd/puzzle_momson_2/common.py index 978de1f..c5fbbe5 100644 --- a/prolog/problems/clp_fd/puzzle_momson_2/common.py +++ b/prolog/problems/clp_fd/puzzle_momson_2/common.py @@ -3,8 +3,8 @@ import prolog.engine import server.problems id = 152 -number = 58 -visible = False +number = 30 +visible = True facts = None solution = '''\ @@ -18,9 +18,7 @@ puzzle_momson(M, S) :- test_cases = [ ('puzzle_momson(M, S)', - [{'M': '42', 'S': '24'}]), - ('puzzle_momson(M, S)', - [{'M': '51', 'S': '15'}]), + [{'M': '42', 'S': '24'}, {'M': '51', 'S': '15'}]), ('setof(M/S, puzzle_momson(M, S), X)', [{'X': '[42/24, 51/15]'}]), ] -- cgit v1.2.1