Merge pull request #41 from rubenpirreram/tests-fix

tests-fix
This commit is contained in:
rubenpirreram
2026-04-23 17:06:13 +02:00
committed by GitHub
19 changed files with 292 additions and 20 deletions
@@ -62,7 +62,7 @@ public abstract class EventCard extends TribeCard {
*/
@Override
public String toString() {
return super.toString()+" "+type.toString();
return super.toString()+", "+type.toString();
}
/**
@@ -70,4 +70,5 @@ public class Hunt extends EventCard {
public EventCard clone() {
return new Hunt(getEra(), prestigeMultiplier);
}
}
@@ -63,6 +63,11 @@ public class Board implements Serializable {
return this.tribeDeck.size();
}
/**
* @return the game era
*/
public int getEra() {return this.era;}
/**
* Creates and initializes a new board:
@@ -234,7 +239,7 @@ public class Board implements Serializable {
upperListBuilding.addAll( buildingCards.subList(0,3));
}
}
else if(era==3)
else // Era 3
{
if(nTotem==2)
{
@@ -13,7 +13,7 @@ public class Order2 extends OrderLogicCard {
* @param players the list of players associated with this order card.
* @throws NoSuchElementException if the number of players is not equal to 2.
*/
public Order2(ArrayList<Player> players)throws NoSuchElementException {
public Order2(ArrayList<Player> players) throws NoSuchElementException {
if(players.size()!=2)
throw new NoSuchElementException();
super(players);