Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
2584-AI
v2.0
Top Level Namespace
Action
Agent
Board
Feature
Player
RandomEnvironment
Statistic
Record
TupleNetwork
Built with Crystal 1.9.2
2023-10-07 20:35:40 UTC
struct
Action
Action
Struct
Value
Object
Defined in:
action.cr
Constructors
.new
(act : Action)
.new
(op : Int32 =
-1
)
Class Method Summary
.move
(oper : Int32)
.place
(tile : Int32, pos : Int32)
Instance Method Summary
#apply!
(b : Board)
#name
#opcode
: Int32
#opcode=
(opcode : Int32)
#to_i
: Int32
Constructor Detail
def self.
new
(act :
Action
)
#
[
View source
]
def self.
new
(op : Int32 =
-1
)
#
[
View source
]
Class Method Detail
def self.
move
(oper : Int32)
#
[
View source
]
def self.
place
(tile : Int32, pos : Int32)
#
[
View source
]
Instance Method Detail
def
apply!
(b :
Board
)
#
[
View source
]
def
name
#
[
View source
]
def
opcode
: Int32
#
[
View source
]
def
opcode=
(opcode : Int32)
#
[
View source
]
def
to_i
: Int32
#
[
View source
]