@paraizo2424 Implementing poker little by little in Ruby Part 1
When I saw this, I thought it was a good challenge, so I made a comment. Do I have the technical ability to give advice? Isn't it still the side to receive advice?
How do you design and implement it when you think about it? While reorganizing I decided to make it because I was staring at myself
I use ruby for work, but when I first joined the company, what was ruby? Because it was a level that I only knew about the name I hope I can look back on that as well.
--Are there 1 ~ 13 + jokers for all suits? --This time I will go without joker ――Maybe I will add it?
――It will be a strong role in order from the top below --Royal Straight Flush --Align 10, J, Q, K, A with the same mark --Straight flush ――With the same mark, 5 numbers are consecutive --Four Card --There are 4 cards with the same number
――Will you reveal the discarded card? --It seems that it will not be released ――What is the comparison between full houses? --In the case of full houses, the rank of a set of 3 cards ――How do you compare straights? --Compare with the strongest card --Straight tricks -> Note: Only Ace can be used as the top or bottom rank card. The strongest straight is A-K-Q-J-T (Ace High) and the weakest straight is 5-4-3-2-A (Five High).
――Since there are no bets, it is not a continuous game, but one game. --Since it is troublesome to create screens etc. and the purpose is to design and implement ruby classes, it will be executed on the console. ――If you don't make all players exchange, it will be difficult to play with the first 5 cards, so all players will be controlled by the performer (meaning of the game w).
--Use ruby 2.6.5 --Use test-unit ――I usually use only rspec at work, so I'll try to touch it.
I don't know how to express it properly, but I will try to divide it into things and things that are not things (= concept).
--Deck --All cards --Hand --Each player's hand (5 cards) dealt from the deck --Role --Combination in your hand --Has the following --Type of role --Strength in the role
I'm going to make it from now on, so I just made it empty. from here. I'm looking forward to it.