Assoziationen und grundlegendes JavaDoc umgesetzt. Externe Schach-Bib.
in Pom integriert.gamelogic
parent
9c0b827e97
commit
279167faaf
30
pom.xml
30
pom.xml
|
|
@ -1,15 +1,25 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>de.mannheim.th.chess</groupId>
|
||||
<artifactId>SchachMVN</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>Schach</name>
|
||||
<properties>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>de.mannheim.th.chess</groupId>
|
||||
<artifactId>SchachMVN</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>Schach</name>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>21</maven.compiler.source>
|
||||
<maven.compiler.target>21</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>jitpack.io</id>
|
||||
<url>https://jitpack.io</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
|
|
@ -30,6 +40,12 @@
|
|||
<artifactId>log4j-core</artifactId>
|
||||
<version>2.24.2</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.github.bhlangonijr</groupId>
|
||||
<artifactId>chesslib</artifactId>
|
||||
<version>1.3.4</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,19 @@
|
|||
package de.mannheim.th.chess;
|
||||
|
||||
import de.mannheim.th.chess.ui.Ui;
|
||||
|
||||
/**
|
||||
* Eine einfache Schach App mithilfe von {@linkplain https://github.com/bhlangonijr/chesslib}
|
||||
* Eine einfache Schach App mithilfe von {@linkplain https://github.com/bhlangonijr/chesslib} entwickelt.
|
||||
* @author Matias Mas Viehl, Dominik Stuck und Marius Guendel
|
||||
* @version 0.0.1
|
||||
*/
|
||||
public class App {
|
||||
|
||||
private Ui userinterface = new Ui();
|
||||
/**
|
||||
* Main-Methode.
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello World!");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
package de.mannheim.th.chess.domain;
|
||||
|
||||
import com.github.bhlangonijr.chesslib.Board;
|
||||
|
||||
import de.mannheim.th.chess.utl.Clock;
|
||||
|
||||
/**
|
||||
* Ist die zentrale Klasse für ein einzelnes Spiel. Ist praktisch die zentrale Steuerung davon.
|
||||
*/
|
||||
public class Game{
|
||||
|
||||
private Board bord = new Board();
|
||||
private Clock clockPlayer1 = new Clock();
|
||||
private Clock clockPlayer2 = new Clock();
|
||||
|
||||
public Game() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
package de.mannheim.th.chess.domain;
|
||||
|
||||
/**
|
||||
* Ueberprueft, ob ein Zug gueltig ist.
|
||||
*/
|
||||
public class MoveChecker{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
package de.mannheim.th.chess.domain;
|
||||
|
||||
/**
|
||||
* Liest einen Zug ein.
|
||||
*/
|
||||
public class MoveReader{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package de.mannheim.th.chess.model;
|
||||
|
||||
/**
|
||||
* Speichert Spielstaende, bisher gespielte Spiele und weiteres in einem File.
|
||||
*/
|
||||
public class Database{
|
||||
|
||||
public Database() {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package de.mannheim.th.chess.ui;
|
||||
|
||||
import de.mannheim.th.chess.model.Database;
|
||||
|
||||
/**
|
||||
* ???
|
||||
*/
|
||||
public class Creator{
|
||||
|
||||
private Database database = new Database();
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package de.mannheim.th.chess.ui;
|
||||
|
||||
import de.mannheim.th.chess.domain.Game;
|
||||
|
||||
/**
|
||||
* Zeigt das Spielbrett mit den Stats rechts daneben an.
|
||||
*/
|
||||
public class GameWindow{
|
||||
|
||||
private Game gamelogic = new Game();
|
||||
|
||||
public GameWindow() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
package de.mannheim.th.chess.ui;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import de.mannheim.th.chess.utl.GameReader;
|
||||
|
||||
/**
|
||||
* Zeigt das Main-Menü der App an.
|
||||
*/
|
||||
public class Ui{
|
||||
|
||||
private ArrayList<GameWindow> gamewindows = new ArrayList<>();
|
||||
private GameReader reader = new GameReader();
|
||||
|
||||
public Ui() {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
package de.mannheim.th.chess.utl;
|
||||
|
||||
/**
|
||||
* Zeigt die Zeitangabe während eines Spiels eines Spielers an.
|
||||
*/
|
||||
public class Clock{
|
||||
|
||||
public Clock() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
package de.mannheim.th.chess.utl;
|
||||
|
||||
import de.mannheim.th.chess.model.Database;
|
||||
|
||||
/**
|
||||
* Liest ein schon vordefinierten Spielstand ein.
|
||||
*/
|
||||
public class GameReader{
|
||||
|
||||
private Database database = new Database();
|
||||
|
||||
}
|
||||
Binary file not shown.
Loading…
Reference in New Issue