Spielablauf (#11)

* added Spielablauf and added various things like Card classes etc.
Co-authored-by: Tobias <tibistruppi.te@gmail.com>
This commit is contained in:
Valentin Heiserer
2023-11-28 22:27:25 +01:00
committed by GitHub
parent da81e7bac0
commit 1376fe645a
43 changed files with 2341 additions and 936 deletions

View File

@@ -0,0 +1,25 @@
package org.schafkopf.spielcontroller;
import org.schafkopf.karte.KartenFarbe;
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);
}
}