mirror of
https://github.com/Vale54321/schafkopf-bot.git
synced 2025-12-16 03:39:34 +01:00
* added Spielablauf and added various things like Card classes etc. Co-authored-by: Tobias <tibistruppi.te@gmail.com>
26 lines
738 B
Java
26 lines
738 B
Java
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);
|
|
}
|
|
}
|