This site requires JavaScript, please enable it in your browser!
Greenfoot back
stokers
stokers wrote ...

2011/6/26

card games

stokers stokers

2011/6/26

#
how to compare the cards in greenfoot to determine one pair, two pair like poker
andy andy

2011/6/26

#
it is very easy indeed. if you think the simply way is very simply actually. I have finished to make that. a few weeks ago and have posted it as a scenario right here. I think you could find it to take a look. if I am you, I prefer to find my own way better than follow other's way.
mjrb4 mjrb4

2011/7/4

#
If you still want more help with this then it'd help to be a bit more specific - what have you tried so far? Have you got any code that we can work from? Generally speaking, if you have a class you can implement the equals() method and subsequently call it to work out if two particular objects are equal, but how to implement it depends on the context!
You need to login to post a reply.