/** * List the active opponents * * @return list of active players not including the current player */ public List<Player> getActiveOpponents() { return game.getActivePlayers() .stream() .filter(p -> !p.equals(player)) .collect(Collectors.toList()); }
public List<Player> getActivePlayers() { return game.getActivePlayers(); }
public PlayingContext(BangGame game, Player player) { this.game = game; this.player = player; this.discardPile = game.getDiscardPile(); this.drawPile = game.getDrawPile(); }