docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class 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().

    Inheritance
    object
    Match3Actuator
    Implements
    IActuator
    IActionReceiver
    IHeuristicProvider
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.MLAgents.Integrations.Match3
    Assembly: solution.dll
    Syntax
    public class Match3Actuator : IActuator, IActionReceiver, IHeuristicProvider

    Constructors

    Name Description
    Match3Actuator(AbstractBoard, bool, int, string)

    Create a Match3Actuator.

    Properties

    Name Description
    ActionSpec

    The specification of the actions for this IActuator.

    Name

    Gets the name of this IActuator which will be used to sort it.

    Methods

    Name Description
    EvalMovePoints(Move)

    Method to be overridden when evaluating how many points a specific move will generate.

    GetBuiltInActuatorType()

    Return the corresponding BuiltInActuatorType for the actuator.

    Heuristic(in ActionBuffers)

    Method called on objects which are expected to fill out the ActionBuffers data structure. Object that implement this interface should be careful to be consistent in the placement of their actions in the ActionBuffers data structure.

    OnActionReceived(ActionBuffers)

    Method called in order too allow object to execute actions based on the ActionBuffers contents. The structure of the contents in the ActionBuffers are defined by the ActionSpec.

    ResetData()

    Resets the internal state of the actuator. This is called at the end of an Agent's episode. Most implementations can leave this empty.

    WriteDiscreteActionMask(IDiscreteActionMask)

    Implement WriteDiscreteActionMask() to modify the masks for discrete actions. When using discrete actions, the agent will not perform the masked action.

    Extension Methods

    IActuatorExtensions.TotalNumberOfActions(IActuator)
    In This Article
    Back to top
    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