Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

Rails integration#2

Open
EnriqueVidal wants to merge 2 commits intomasterfrom
rails_integration
Open

Rails integration#2
EnriqueVidal wants to merge 2 commits intomasterfrom
rails_integration

Conversation

@EnriqueVidal
Copy link
Copy Markdown
Member

We will refactor the whole gem to be a Rails compatible texas holdem' gem, it is not finished yet but this you can see the incremental improvements in here.

Comment thread lib/texas_holdem/deck.rb
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should do the Array#shuffle method. All sorts of cleverness going on here, shuffle 3 times, random location, then reverse the deck lol

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, the same feeling I have, but when I re-factored I decided to test first to better understand what the original developer was trying to accomplish.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants