private void DisplayMovementOptions(ChessPiece piece) { foreach (int[] location in ChessPieces.GetAllMovementOptions()[ChessPieces.GetAlliedPiecesRemaining().IndexOf(piece)]) { InstantiateMovementBox("Movement", location[0], location[1]); } }
private void StartTurn() { ChessPieces.CalculateAllMovementOptions(); ChessPieces.GetAllMovementOptions(); if (ChessPieces.MovementOptionsAreAvailable()) { Debug.Log("Moves available"); } else { string winner = ChessPieces.IsWhiteTurn() ? "Black" : "White"; Debug.Log(winner + " wins!"); } }