nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Not null types
[nit.git]
/
lib
/
ai
/
examples
/
puzzle.nit
diff --git
a/lib/ai/examples/puzzle.nit
b/lib/ai/examples/puzzle.nit
index
d07c1be
..
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)
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
end
# Return the state where the tile at hole+action has moved
@@
-276,7
+276,6
@@
for arg in args do
continue
end
continue
end
- var c = new Clock
var s = pb.astar
s.memorize = true
var r = s.run
var s = pb.astar
s.memorize = true
var r = s.run