/** * This method collects the players picks */ private static string playerPick(int i_Player) { string playerPick = ""; // computer player if (i_Player == 3) { do { playerPick = s_Player2C.Turn(s_Board.Row, s_Board.Col); } while (!checkForValidInput(playerPick)); } // Human Player else { string PlayerName = (i_Player == 1) ? s_Player1.Name : s_Player2H.Name; do { Console.WriteLine("{0} pick a square (or press Q to quit):", PlayerName); Console.WriteLine("Examples for valid inputs A1, D2, C4"); playerPick = Console.ReadLine(); if (playerPick.Equals("Q")) { break; } } while (!checkForValidInput(playerPick)); } return(playerPick); }