From da0f5f2c180a0ce791469b228879c56f7f26ef4e Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Sun, 5 Apr 2015 04:43:32 +0700 Subject: [PATCH] lib/ai: remove randomness in puzzle so benches can compare sanely Signed-off-by: Jean Privat --- lib/ai/examples/puzzle.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ai/examples/puzzle.nit b/lib/ai/examples/puzzle.nit index 83c4b4c..0583035 100644 --- a/lib/ai/examples/puzzle.nit +++ b/lib/ai/examples/puzzle.nit @@ -103,7 +103,7 @@ class PuzzleProblem if x < width-1 then res.add(1) if y >= 1 then res.add(-width) if y < width-1 then res.add(width) - return res.as_random.take_all + return res end # Return the state where the tile at hole+action has moved -- 1.7.9.5