static XO.Square TurnLogic(int input, XO.Square square, bool success, int turn, List <XO.Square> Squares) { if (success && input > 0 && input < 10 && square == XO.Square.Empty) { return(square = XO.Square.O); } else { throw new System.ArgumentException("Invalid Index"); } }
static string SquareToString(XO.Square square) { switch (square) { case XO.Square.X: return("X"); case XO.Square.O: return("O"); case XO.Square.Empty: return(" "); default: throw new System.ArgumentException("Invalid Enum"); } }