docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)