Added basics
This commit is contained in:
commit
09c7e4e41d
30
src/game/Game.java
Normal file
30
src/game/Game.java
Normal file
|
@ -0,0 +1,30 @@
|
|||
package game;
|
||||
|
||||
import math.Random;
|
||||
|
||||
import player.Player;
|
||||
// import player.Player1;
|
||||
// import player.Player2;
|
||||
|
||||
public class Game {
|
||||
|
||||
private final Player p1;
|
||||
private final Player p2;
|
||||
|
||||
public Game(Player p1, Player p2) {
|
||||
this.p1 = p1;
|
||||
this.p2 = p2;
|
||||
}
|
||||
|
||||
public void start() {
|
||||
Random ran = new Random();
|
||||
|
||||
while(gameOn) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void log(String s) {
|
||||
|
||||
}
|
||||
}
|
8
src/game/Main.java
Normal file
8
src/game/Main.java
Normal file
|
@ -0,0 +1,8 @@
|
|||
package game;
|
||||
|
||||
public class Main {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
}
|
||||
}
|
9
src/player/Player.java
Normal file
9
src/player/Player.java
Normal file
|
@ -0,0 +1,9 @@
|
|||
package player;
|
||||
|
||||
public interface Player {
|
||||
|
||||
private String name;
|
||||
|
||||
public int move(int[][] game);
|
||||
public String getName();
|
||||
}
|
Loading…
Reference in a new issue