Okay so I started to write the code that will find pairs in the hand and remove them from the hand. I'm using a for loop and a nested for loop...and that confused me a bit so I just wrote it all out on paper first along with the list of cards and somehow fumbled around and made them work. So far in the actual program there is only the for loop conditions things like for(int blah = ....) etc., etc... and when I build it, it works nicely except there's no code inside yet. That, I will work on Friday.
--
It works now. I've run it. The only issue I have is making the new cards (after having the four of a kinds removed) show up. I have the method that refreshes the player's hand for me but it's not...working. I'll figure it out some time later.
No comments:
Post a Comment