Git Product home page Git Product logo

dominion-rails's Introduction

README

Code Climate

A Dominion Web Application written in:

  • Ruby 2.0
  • Rails 4.0.0

This app was rewritten in Meteor. The maintained codebase can be found here

dominion-rails's People

Contributors

jcbantuelle avatar michael-misshore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dominion-rails's Issues

Swindler Error

When playing Swindler, I received this error in my log:

/Users/michaelbug/Sites/dominion/app/models/game_player.rb:82:in block in find_cards_in_play': undefined methodid' for nil:NilClass (NoMethodError)
from /Users/michaelbug/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/relation/query_methods.rb:216:in block in select' from /Users/michaelbug/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/relation/query_methods.rb:216:inselect'
from /Users/michaelbug/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/relation/query_methods.rb:216:in select' from /Users/michaelbug/Sites/dominion/app/models/game_player.rb:82:infind_cards_in_play'
from /Users/michaelbug/Sites/dominion/app/services/card_player.rb:50:in attack' from /Users/michaelbug/Sites/dominion/app/services/card_player.rb:17:inplay_card'
from /Users/michaelbug/Sites/dominion/app/controllers/concerns/websockets/game/turn_actions.rb:70:in block in _play_card' from /Users/michaelbug/Sites/dominion/app/controllers/concerns/websockets/game/turn_actions.rb:54:inblock in with_active_record_connection'
from /Users/michaelbug/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in with_connection' from /Users/michaelbug/Sites/dominion/app/controllers/concerns/websockets/game/turn_actions.rb:53:inwith_active_record_connection'
from /Users/michaelbug/Sites/dominion/app/controllers/concerns/websockets/game/turn_actions.rb:67:in _play_card' from /Users/michaelbug/Sites/dominion/app/controllers/concerns/websockets/game/turn_actions.rb:24:inblock in play_card'
from /Users/michaelbug/Sites/dominion/app/controllers/concerns/websockets/game/turn_actions.rb:59:in `block in execute_in_thread'

Stack trace from upstream/master

/Users/michaelbug/Sites/dominion/app/models/game_player.rb:78:in block in find_cards_in_hand': undefined methodid' for nil:NilClass (NoMethodError)
from /Users/michaelbug/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/relation/query_methods.rb:216:in block in select' from /Users/michaelbug/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/relation/query_methods.rb:216:inselect'
from /Users/michaelbug/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/relation/query_methods.rb:216:in select' from /Users/michaelbug/Sites/dominion/app/models/game_player.rb:78:infind_cards_in_hand'
from /Users/michaelbug/Sites/dominion/app/models/game_player.rb:73:in find_card_in_hand' from /Users/michaelbug/Sites/dominion/app/services/card_trasher.rb:17:inblock in trash'
from /Users/michaelbug/Sites/dominion/app/services/card_trasher.rb:16:in each' from /Users/michaelbug/Sites/dominion/app/services/card_trasher.rb:16:intrash'
from /Users/michaelbug/Sites/dominion/app/cards/rat.rb:42:in process_action' from /Users/michaelbug/Sites/dominion/app/services/turn_action_handler.rb:32:inprocess_player_response'
from /Users/michaelbug/Sites/dominion/app/cards/rat.rb:32:in block (2 levels) in play' from /Users/michaelbug/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:inwith_connection'
from /Users/michaelbug/Sites/dominion/app/cards/rat.rb:30:in `block in play'

King's Court -> Workshop -> Card to Gain (2x left)

On the third (or second) run of King's Court, when using Workshop as the target action, if the card to gain from Workshop is "out-of-stock", you can still select that card via the options checkbox. However, the game is smart enough to not let the player gain the card.

Likewise, the pile number doesn't update as you gain a card from Workshop using King's Court (assuming Throne Room) as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.