// Constructors: public User(string i_Name, ePlayerType i_PlayerNumber, bool i_IsComputer) { m_Name = i_Name; m_Score = 0; m_CheckersPiece = null; m_PlayerNumber = i_PlayerNumber; m_CheckerPieceKind = i_PlayerNumber == ePlayerType.MainPlayer ? CheckersPiece.ePieceKind.MainPlayerTool : CheckersPiece.ePieceKind.SecondPlayerTool; m_Moves = null; m_CurrentCheckerPiece = null; m_IsComputer = i_IsComputer; }
public static string PlayerTurn(Board i_GameBoard, string i_PlayerName, CheckersPiece.ePieceKind pieceKind) { Console.Write(i_PlayerName + "'s turn"); if (pieceKind == CheckerPiece.CheckersPiece.ePieceKind.MainPlayerTool) { Console.WriteLine("(O)"); } else { Console.WriteLine("(X)"); } string currentMove = UserInterface.GetValidMove(i_GameBoard); return(currentMove); }