-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
36 lines (26 loc) · 1.09 KB
/
Main.java
File metadata and controls
36 lines (26 loc) · 1.09 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
package com.dj;
import com.dj.game.GameConsole;
import com.dj.pirate.PirateGame;
public class Main {
public static void main(String[] args) {
// var console = new GameConsole<>(new ShooterGame("The Shootout Game"));
//
// int playerIndex = console.addPlayer();
// console.playGame(playerIndex);
// Weapon weapon = Weapon.getWeaponByChar('P');
// System.out.println("weapon = " + weapon + ", hitPoints = " + weapon.getHitPoints() + ", minLevel = " + weapon.getMinLevel());
//
// var list = Weapon.getWeaponsByLevel(1);
// list.forEach(System.out::println);
//
// Pirate dj = new Pirate("DJ");
// System.out.println(dj);
//
// PirateGame.getTowns(0).forEach(t -> System.out.println(t.information()));
// System.out.println("------------------------------------------");
// PirateGame.getTowns(1).forEach(t -> System.out.println(t.information()));
var console = new GameConsole<>(new PirateGame("The Pirate Game"));
int playerIndex = console.addPlayer();
console.playGame(playerIndex);
}
}