docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct BoardSize

    Representation of the AbstractBoard dimensions, and number of cell and special types.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.MLAgents.Integrations.Match3
    Assembly: Unity.ML-Agents.dll
    Syntax
    public struct BoardSize

    Fields

    Columns

    Number of columns on the board

    Declaration
    public int Columns
    Field Value
    Type Description
    int

    NumCellTypes

    Maximum number of different types of cells (colors, pieces, etc).

    Declaration
    public int NumCellTypes
    Field Value
    Type Description
    int

    NumSpecialTypes

    Maximum number of special types. This can be zero, in which case all cells of the same type are assumed to be equivalent.

    Declaration
    public int NumSpecialTypes
    Field Value
    Type Description
    int

    Rows

    Number of rows on the board

    Declaration
    public int Rows
    Field Value
    Type Description
    int

    Methods

    ToString()

    Return a string representation of the BoardSize.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Operators

    operator >=(BoardSize, BoardSize)

    Check that all fields of the left-hand BoardSize are greater than or equal to the field of the right-hand BoardSize

    Declaration
    public static bool operator >=(BoardSize lhs, BoardSize rhs)
    Parameters
    Type Name Description
    BoardSize lhs
    BoardSize rhs
    Returns
    Type Description
    bool

    True if all fields are greater than or equal.

    operator <=(BoardSize, BoardSize)

    Check that all fields of the left-hand BoardSize are less than or equal to the field of the right-hand BoardSize

    Declaration
    public static bool operator <=(BoardSize lhs, BoardSize rhs)
    Parameters
    Type Name Description
    BoardSize lhs
    BoardSize rhs
    Returns
    Type Description
    bool

    True if all fields are less than or equal.

    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)