public void SetPlayerName() { Name = UserInterface.GetUserInputString("Please enter your name!\n"); }
public void ChooseHitLocation(HiddenBoard activeBoard) { rowSelection = UserInterface.GetUserInputInt("Pick the row of your hit!\n"); columnSelection = UserInterface.GetUserInputInt("Pick the column of your hit!\n"); activeBoard.Board[rowSelection, columnSelection] = "X"; }
public void SetShipDirection(Ship ship) { //use to set vertical or horizontal orientation of ship ship.OrientationCode = UserInterface.GetUserInputInt("Which direction would you like your ship to go? (1 for horizontal, 2 for vertical)"); }