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
Knight
Knight
Reference
Object
Defined in:
knight_tour.cr
Constructors
.new
(n : Int32, current : NamedTuple(x: Int32, y: Int32))
Class Method Summary
.travel
(n, start)
Instance Method Summary
#hard
(steps)
#possible
(step)
#travel
#visitable?
(step)
Constructor Detail
def self.
new
(n : Int32, current : NamedTuple(x: Int32, y: Int32))
#
[
View source
]
Class Method Detail
def self.
travel
(n, start)
#
[
View source
]
Instance Method Detail
def
hard
(steps)
#
[
View source
]
def
possible
(step)
#
[
View source
]
def
travel
#
[
View source
]
def
visitable?
(step)
#
[
View source
]