docs.unity3d.com
    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.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023