Namespace Unity.MLAgents.Integrations.Match3
Classes
AbstractBoard
An adapter between ML Agents and a Match-3 game.
Match3Actuator
Actuator for a Match3 game. It translates valid moves (defined by AbstractBoard.IsMoveValid()) in action masks, and applies the action to the board via AbstractBoard.MakeMove().
Match3ActuatorComponent
Actuator component for a Match3 game. Generates a Match3Actuator at runtime.
Match3Sensor
Sensor for Match3 games. Can generate either vector, compressed visual, or uncompressed visual observations. Uses a GridValueProvider to determine the observation values.
Match3SensorComponent
Sensor component for a Match3 game.
Structs
BoardSize
Representation of the AbstractBoard dimensions, and number of cell and special types.
Move
Struct that encapsulates a swap of adjacent cells. A Move can be constructed from either a starting row, column, and direction, or from a "move index" between 0 and NumPotentialMoves()-1. Moves are enumerated as the internal edges of the game grid. Left/right moves come first. There are (maxCols - 1) * maxRows of these. Up/down moves are next. There are (maxRows - 1) * maxCols of these.
Enums
Direction
Directions for a Move.
Match3ObservationType
Type of observations to generate.
Delegates
GridValueProvider
Delegate that provides integer values at a given (x,y) coordinate.