From 09c7e4e41d9ac5db2624d59a9e3534fa03341945 Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Fri, 13 Oct 2017 10:46:02 +0200 Subject: [PATCH] Added basics --- src/game/Game.java | 30 ++++++++++++++++++++++++++++++ src/game/Main.java | 8 ++++++++ src/player/Player.java | 9 +++++++++ 3 files changed, 47 insertions(+) create mode 100644 src/game/Game.java create mode 100644 src/game/Main.java create mode 100644 src/player/Player.java diff --git a/src/game/Game.java b/src/game/Game.java new file mode 100644 index 0000000..00020a6 --- /dev/null +++ b/src/game/Game.java @@ -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) { + + } +} diff --git a/src/game/Main.java b/src/game/Main.java new file mode 100644 index 0000000..fdccdcb --- /dev/null +++ b/src/game/Main.java @@ -0,0 +1,8 @@ +package game; + +public class Main { + + public static void main(String[] args) { + + } +} diff --git a/src/player/Player.java b/src/player/Player.java new file mode 100644 index 0000000..4f6685a --- /dev/null +++ b/src/player/Player.java @@ -0,0 +1,9 @@ +package player; + +public interface Player { + + private String name; + + public int move(int[][] game); + public String getName(); +}