fantasy_realms_unofficial_api 0.1.0

An unofficial API for the Fantasy Realms card game.
Documentation
use super::*;

pub(crate) const FOREST: Card = Card {
    name: Name::Forest,
    suit: Suit::Land,
    strength: 7,
    adder: None,
    wild: None,
    modifier: None,
    immunity: None,
    blanks: None,
    bonus: Some(forest_bonus),
    penalty: None,
};

pub(crate) fn forest_bonus(hand: &ScoringHand) -> i16 {
    12 * (hand.number_of_suit(Suit::Beast) + 
    (hand.contains_name(Name::ElvenArchers) as i16))
}