Ruby on Rails Friday, September 5, 2014

I need to implement a card game between two players. A player clicks
"bet" button, then a game appears in queue list and another player
clicks "join" button, and then the game starts. Technologies I use
include Rails 4, websocket-rails, jQuery. What I'm confused about is how
to show each player their own cards and to not show the opponent's cards
on the board. What technique is being used for this purpose? I think I
should use internal websocket-rails' connection_store method to store
players' cards, but I'm not sure how to work with it later in game and
how to store each player's cards in variables

Has anybody here have this kind of experience with websocket-rails? Any
advice? May be there is implemented card game on rails somewhere, some
code of which I could borrow?

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/29f2a741909c1bba014b51faf317d765%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment