public class DeckUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Map<Integer,List<Card>> |
bindBlindCard(int player,
Hand hand,
List<Card> deck)
Bind cards, but don't use real values if present.
|
static Map<Integer,List<Card>> |
bindCard(int player,
Hand hand,
List<Card> deck) |
static Map<Integer,Card> |
bindCards(List<Integer> order,
Map<Integer,List<Card>> possibleCards) |
static List<Integer> |
bindOrder(Map<Integer,List<Card>> possibleCards) |
static double |
getProbablity(List<Card> cards,
Card target) |
static double |
getProbablity(List<Card> cards,
CardColour target) |
static double |
getProbablity(List<Card> cards,
Integer target) |
static double |
getProbablity(List<Card> cards,
Predicate<Card> rule) |
static boolean |
isDiscardable(Card card,
GameState state) |
static boolean |
isDiscardable(List<Card> cards,
GameState state) |
public static Map<Integer,List<Card>> bindBlindCard(int player, Hand hand, List<Card> deck)
This should be used if the player has a perfect infomation copy of the state but should act like they don't. (mostly important for rule based AIs which can be used as predictors).
player
- hand
- deck
- public static double getProbablity(List<Card> cards, CardColour target)
Copyright © 2017 FOSS Galaxy. All rights reserved.