jcbantuelle/dominion-meteor

View on GitHub
app/cards/base/laboratory.js

Summary

Maintainability
A
3 hrs
Test Coverage
Laboratory = class Laboratory extends Card {

  types() {
    return ['action']
  }

  coin_cost() {
    return 5
  }

  play(game, player_cards, card_player) {
    let card_drawer = new CardDrawer(game, player_cards, card_player)
    card_drawer.draw(2)

    let action_gainer = new ActionGainer(game, player_cards)
    action_gainer.gain(1)
  }

}