-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
61 lines (56 loc) · 2.31 KB
/
Copy pathMain.java
File metadata and controls
61 lines (56 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
Map map = new Map();
while(!map.isFishCaught()){
System.out.println("Where would you like to fish?");
map.printMap();
System.out.println("Please enter X and Y coordinates individually...");
Fishing.fish(map, scan.nextInt(), scan.nextInt());
if(!map.isFishCaught())
{
System.out.println("Would you like to purchase something?");
if(scan.next().equals("yes"))
{
System.out.println("We have a net and baits to aid your fishing...");
System.out.println("What would you like to purchase? (Please note that you can't purchase net more than twice! Don't waste your coins!)");
String a = scan.next();
if(a.equals("net"))
{
Fishing.requestNet();
System.out.println("You went back to fishing...");
}
if(a.equals("bait"))
{
map.printMap();
System.out.println("Where would you like to drop your bait? Please enter X and Y coordinates individually...");
Fishing.requestBait(map, scan.nextInt(), scan.nextInt());
System.out.println("You went back to fishing...");
}
}
else
{
System.out.println("You didn't purchase anything and went back to fish...");
}
Fishing.printStat();
}
}
Fishing.printWins();
/**map.printMap();
System.out.println(map.getFishX());
System.out.println(map.getFishY());
Fishing.fish(map, 2, 3);
map.setFishX(2);
map.setFishY(2);
map.resetFish();
System.out.println(map.getFishX());
System.out.println(map.getFishY());
Fishing.fish(map, 3, 3);
Fishing.requestBait(map, 2, 2);
System.out.println(map.getFishX());
System.out.println(map.getFishY());
Fishing.requestNet();
Fishing.printStat();**/
}
}