Przeglądaj źródła

Added main class, made the game runnable again

Ondřej Schlaichert 8 miesięcy temu
rodzic
commit
c283e203d4
1 zmienionych plików z 15 dodań i 0 usunięć
  1. 15 0
      src/main/java/eu/oschl/schmorn/Main.java

+ 15 - 0
src/main/java/eu/oschl/schmorn/Main.java

@@ -0,0 +1,15 @@
+package eu.oschl.schmorn;
+import eu.oschl.cli.Session;
+
+/**
+ * This class serves as the entry point for the game.
+ *
+ * @author Ondřej Schlaichert
+ */
+class Main {
+    static void main() {
+        var game = Setup.createGame();
+        var session = new Session(game);
+        session.start();
+    }
+}