Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crystal-example
master
Top Level Namespace
Knight
Mouse
Position
Generated using Crystal 1.14.0
2024-11-26 07:04:23 UTC
class
Mouse
Mouse
Reference
Object
Defined in:
mouse_go_maze1.cr
Constructors
.new
(maze : Array(Array(Int32)), goal : NamedTuple(x: Int32, y: Int32))
Class Method Summary
.go
(maze, start, goal)
Instance Method Summary
#goal?
#route
: Array({x: Int32, y: Int32})
#try_one_out
(pt)
#visit
(pt)
#visitable?
(pt)
Constructor Detail
def self.
new
(maze : Array(Array(Int32)), goal : NamedTuple(x: Int32, y: Int32))
#
[
View source
]
Class Method Detail
def self.
go
(maze, start, goal)
#
[
View source
]
Instance Method Detail
def
goal?
#
[
View source
]
def
route
: Array({x: Int32, y: Int32})
#
[
View source
]
def
try_one_out
(pt)
#
[
View source
]
def
visit
(pt)
#
[
View source
]
def
visitable?
(pt)
#
[
View source
]