Example #1
0
 public void SetPlayerName()
 {
     Name = UserInterface.GetUserInputString("Please enter your name!\n");
 }
Example #2
0
 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";
 }
Example #3
0
 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)");
 }