Mono Repo

* moveBackend

* added Frontend

* added env support for COM port

* added frontend into monorepo
This commit is contained in:
Valentin Heiserer
2024-04-16 22:24:11 +02:00
committed by GitHub
parent fb7ae31a0d
commit 09c38c81dd
138 changed files with 4410 additions and 5 deletions

View File

@@ -0,0 +1,24 @@
package org.schafkopf.spielcontroller;
import org.schafkopf.karte.KartenListe;
import org.schafkopf.karte.KartenSymbol;
import org.schafkopf.karte.KartenUtil;
/**
* SpielController that implements Logic of a Geier Game.
*/
public class GeierController extends GeierWenzController {
/**
* Create instance of Geier Game.
*/
public GeierController(int activePlayer) {
super(activePlayer);
KartenListe kartenList = KartenUtil.initializeSchafKopfCardDeck();
KartenListe oberKarten = kartenList.getKarten(KartenSymbol.OBER);
kartenList.removeKarten(oberKarten);
this.trumpfKarten = new KartenListe(oberKarten);
this.farbKarten = new KartenListe(kartenList);
}
}