Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
gol
main
Top Level Namespace
Gol
Cell
World
Built with Crystal 1.10.0
2023-12-22 06:16:09 UTC
class
Gol::
Cell
Gol::Cell
Reference
Object
Defined in:
gol/cell.cr
Constructors
.new
(alive : Bool, x : Int32, y : Int32)
Instance Method Summary
#alive!
#alive?
: Bool
#checkNeighbours
(w : World, generations : Int32, cells : Int32)
#dead!
#dead?
#repr
: String
#x?
#y?
Constructor Detail
def self.
new
(alive : Bool, x : Int32, y : Int32)
#
[
View source
]
Instance Method Detail
def
alive!
#
[
View source
]
def
alive?
: Bool
#
[
View source
]
def
checkNeighbours
(w :
World
, generations : Int32, cells : Int32)
#
[
View source
]
def
dead!
#
[
View source
]
def
dead?
#
[
View source
]
def
repr
: String
#
[
View source
]
def
x?
#
[
View source
]
def
y?
#
[
View source
]