docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method FromMoveIndex

    FromMoveIndex(int, BoardSize)

    Construct a Move from its move index and the board size. This is useful for iterating through all the Moves on a board, or constructing the Move corresponding to an Agent decision.

    Declaration
    public static Move FromMoveIndex(int moveIndex, BoardSize maxBoardSize)
    Parameters
    Type Name Description
    int moveIndex

    Must be between 0 and NumPotentialMoves(maxRows, maxCols).

    BoardSize maxBoardSize
    Returns
    Type Description
    Move
    Exceptions
    Type Condition
    ArgumentOutOfRangeException
    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