Minor changes
This commit is contained in:
@@ -15,21 +15,18 @@ public class StartText extends Player {
|
|||||||
* Initializes the game by asking for your name and if you would like to start with either: 1) money and a debt or
|
* Initializes the game by asking for your name and if you would like to start with either: 1) money and a debt or
|
||||||
* 2) guns and no cash/debt.
|
* 2) guns and no cash/debt.
|
||||||
*/
|
*/
|
||||||
public void start()
|
public void start() {
|
||||||
{
|
|
||||||
Scanner userInput = new Scanner(System.in);
|
Scanner userInput = new Scanner(System.in);
|
||||||
System.out.println("Taipan, \nWhat will you name your firm:");
|
System.out.println("Taipan, \nWhat will you name your firm:");
|
||||||
setName(userInput.nextLine());
|
setName(userInput.nextLine());
|
||||||
System.out.println("Do you want to start . . .\n\t1) With cash (and a debt)\n\t\t\t>> or <<\n\t" + "2) With five guns and no cash (But no debt!)?\n ");
|
System.out.println("Do you want to start . . .\n\t1) With cash (and a debt)\n\t\t\t>> or <<\n\t" + "2) With five guns and no cash (But no debt!)?\n ");
|
||||||
int input = userInput.nextInt();
|
int input = userInput.nextInt();
|
||||||
if (input == 1)
|
if (input == 1) {
|
||||||
{
|
|
||||||
setMoney(400);
|
setMoney(400);
|
||||||
setDebt(5000);
|
setDebt(5000);
|
||||||
|
|
||||||
}
|
}
|
||||||
if (input == 2)
|
if (input == 2) {
|
||||||
{
|
|
||||||
setGuns(5);
|
setGuns(5);
|
||||||
}
|
}
|
||||||
// purely for testing purposes.
|
// purely for testing purposes.
|
||||||
|
|||||||
Reference in New Issue
Block a user