nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9294993
)
lib/ai: remove randomness in puzzle so benches can compare sanely
author
Jean Privat
<jean@pryen.org>
Sat, 4 Apr 2015 21:43:32 +0000
(
04:43
+0700)
committer
Jean Privat
<jean@pryen.org>
Sat, 4 Apr 2015 21:43:32 +0000
(
04:43
+0700)
Signed-off-by: Jean Privat <jean@pryen.org>
lib/ai/examples/puzzle.nit
patch
|
blob
|
history
diff --git
a/lib/ai/examples/puzzle.nit
b/lib/ai/examples/puzzle.nit
index
83c4b4c
..
0583035
100644
(file)
--- 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