Modifier and Type | Method and Description |
---|---|
GameState |
Individual.determinise(GameState state,
int agentID,
Map<Integer,List<Card>> possibleCards,
List<Integer> bindOrder) |
Modifier and Type | Method and Description |
---|---|
boolean |
HatGuessing.isDead(GameState state,
Card card)
Is the card dead by the Hat Guessing definition
|
boolean |
HatGuessing.isIndispensable(GameState state,
Card card)
places a card can be:
1) in the deck (still in deck or our hand)
2) in the discard pile (played incorrectly or discarded cards)
3) on the table (card is no longer needed, a copy was played successfully)
4) another player's hand (our copy is not the only one)
|
boolean |
HatGuessing.isPlayable(GameState state,
Card card)
Is the card playable by the Hat Guessing definition
|
Modifier and Type | Method and Description |
---|---|
void |
DeckModel.initialObservations(List<Card> observableCards)
Provide the model with a list of cards that are visible at the start of the game.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
PlaySafeCard.isPlayable(Card card,
GameState state) |
Modifier and Type | Method and Description |
---|---|
static Map<Integer,List<Card>> |
DeckUtils.bindBlindCard(int player,
Hand hand,
List<Card> deck)
Bind cards, but don't use real values if present.
|
static Map<Integer,List<Card>> |
DeckUtils.bindCard(int player,
Hand hand,
List<Card> deck) |
static Map<Integer,Card> |
DeckUtils.bindCards(List<Integer> order,
Map<Integer,List<Card>> possibleCards) |
Modifier and Type | Method and Description |
---|---|
static double |
DeckUtils.getProbablity(List<Card> cards,
Card target) |
static boolean |
DeckUtils.isDiscardable(Card card,
GameState state) |
Modifier and Type | Method and Description |
---|---|
static Map<Integer,List<Card>> |
DeckUtils.bindBlindCard(int player,
Hand hand,
List<Card> deck)
Bind cards, but don't use real values if present.
|
static Map<Integer,List<Card>> |
DeckUtils.bindCard(int player,
Hand hand,
List<Card> deck) |
static Map<Integer,Card> |
DeckUtils.bindCards(List<Integer> order,
Map<Integer,List<Card>> possibleCards) |
static List<Integer> |
DeckUtils.bindOrder(Map<Integer,List<Card>> possibleCards) |
static double |
DeckUtils.getProbablity(List<Card> cards,
Card target) |
static double |
DeckUtils.getProbablity(List<Card> cards,
CardColour target) |
static double |
DeckUtils.getProbablity(List<Card> cards,
Integer target) |
static double |
DeckUtils.getProbablity(List<Card> cards,
Predicate<Card> rule) |
static double |
DeckUtils.getProbablity(List<Card> cards,
Predicate<Card> rule) |
static boolean |
DeckUtils.isDiscardable(List<Card> cards,
GameState state) |
Modifier and Type | Method and Description |
---|---|
boolean |
PlayProbablySafeCard.isPlayable(Card card,
GameState state) |
Modifier and Type | Method and Description |
---|---|
static void |
CardComponent.drawCard(Graphics2D g,
Card card,
int x,
int y,
int width,
int height,
boolean hover) |
Modifier and Type | Method and Description |
---|---|
void |
CardHinter.hintColoursFor(int slot,
int ord,
List<Card> cards) |
void |
CardHinter.hintValuesFor(int slot,
CardColour colour,
List<Card> cards) |
Modifier and Type | Method and Description |
---|---|
Card |
GameState.drawFromDeck() |
Card |
BasicState.drawFromDeck() |
Card |
Hand.getCard(int slot)
Get the card really present in the slot (or null if unknown).
|
Card |
ShieldedHand.getCard(int slot) |
Card |
BasicHand.getCard(int slot)
Get the card really present in the slot (or null if unknown).
|
Card |
GameState.getCardAt(int player,
int slot) |
Card |
BasicState.getCardAt(int player,
int slot) |
Card |
Deck.getTopCard()
Gets and removes the top card from the deck
|
Modifier and Type | Method and Description |
---|---|
Collection<Card> |
GameState.getDiscards() |
Collection<Card> |
BasicState.getDiscards() |
Iterator<Card> |
BasicHand.iterator()
Create an iterator of the cards, based on the real cards present.
|
List<Card> |
Deck.toList() |
Modifier and Type | Method and Description |
---|---|
void |
Deck.add(Card card)
Add a new card to the deck.
|
void |
GameState.addToDiscard(Card card) |
void |
BasicState.addToDiscard(Card card) |
void |
Hand.bindCard(int slot,
Card card)
Bind a card to a given slot, keeping all known information about it.
|
void |
ShieldedHand.bindCard(int slot,
Card card) |
void |
BasicHand.bindCard(int slot,
Card card)
Bind a card to a given slot, keeping all known information about it.
|
int |
Card.compareTo(Card o) |
boolean |
Hand.isCompletePossible(int slot,
Card card)
Check if this card is possible based on complete infomation.
|
boolean |
ShieldedHand.isCompletePossible(int slot,
Card card) |
boolean |
BasicHand.isCompletePossible(int slot,
Card card)
Check if this card is possible based on complete infomation.
|
boolean |
Hand.isPossible(int slot,
Card card)
check if the card is possible, based on the owner's prespective
|
boolean |
ShieldedHand.isPossible(int slot,
Card card) |
boolean |
BasicHand.isPossible(int slot,
Card card)
check if the card is possible, based on the owner's prespective
|
boolean |
NegativeHand.isPossible(int slot,
Card card) |
void |
Deck.remove(Card card) |
void |
Hand.setCard(int slot,
Card card)
Set a card in a given slot, removing all known information about it.
|
void |
ShieldedHand.setCard(int slot,
Card card) |
void |
BasicHand.setCard(int slot,
Card card)
Set a card in a given slot, removing all known information about it.
|
void |
GameState.setCardAt(int player,
int slot,
Card newCard) |
void |
BasicState.setCardAt(int player,
int slot,
Card card) |
Copyright © 2017 FOSS Galaxy. All rights reserved.