Assets/Scripts/BoardManager.cs
/// <summary>
/// return the index of a certain prefab given the chess notation for the same piece
/// each prefab is in ChessPieceModels
/// </summary>
return the index of a certain prefab given the chess notation for the same piece
each prefab is in ChessPieceModels
return the index of a certain prefab given the chess notation for the same piece each prefab is in ChessPieceModels
public int convertPieceNotationToIndex(string notation)
    {
        switch (notation)
        {
            case "r":
                return 0;
            case "R":
                return 6;
            case "n":
                return 1;
            case "N":
                return 7;
            case "b":
                return 2;
            case "B":
                return 8;
            case "q":
                return 3;
            case "Q":
                return 9;
            case "k":
                return 4;
            case "K":
                return 10;
            case "p":
                return 5;
            case "P":
                return 11;
            default:
                return -1;
        }
    }
public int convertPieceNotationToIndex ( string notation ) { switch ( notation ) { case " " : return 0 ; case " " : return 6 ; case " " : return 1 ; case " " : return 7 ; case " " : return 2 ; case " " : return 8 ; case " " : return 3 ; case " " : return 9 ; case " " : return 4 ; case " " : return 10 ; case " " : return 5 ; case " " : return 11 ; default : return - 1 ; } }
return the index of a certain prefab given the chess notation for the same piece
each prefab is in ChessPieceModels
return the index of a certain prefab given the chess notation for the same piece each prefab is in ChessPieceModels
//small Leters ->Black //Capital Letter ->white //rooks //knights->horses //bishops //Queen //King //pawns
notation
string