Bug 70903 - kpoker identifies only one pair
Summary: kpoker identifies only one pair
Status: RESOLVED FIXED
Alias: None
Product: kpoker
Classification: Applications
Component: general (show other bugs)
Version: 0.7
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Andreas Beckermann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-20 08:57 UTC by Yotam Frechter
Modified: 2004-08-26 23:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yotam Frechter 2003-12-20 08:57:27 UTC
Version:           0.7 (using KDE 3.1.0)
Installed from:    Mandrake Linux Cooker i586 - Cooker
Compiler:          gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
OS:          Linux (i686) release 2.4.21-0.25mdk

my situation in kpoker is as follows:

A 8 A J J
the two Aces are from different suites and also the two Jacks are from different suites.

only the J J pair is blinking and i am awarded 5$ instead of 10$.
Comment 1 Emanoil Kotsev 2003-12-29 03:22:20 UTC
Ia have teh same problem - it should be the black spide ace that's not counted

might be some loop where the last element is skipped

Please fix it
Comment 2 Mathieu Jobin 2004-08-22 01:41:07 UTC
is it bug#51140 duplicate ?
Comment 3 Inge Wallin 2004-08-26 23:00:09 UTC
CVS commit by ingwa: 

Completely rewrite of the valuation of a poker hand.  This patch fixes
all valuation bugs as far as I know, and it is tested pretty
thoroughly.  I played so much that I managed to once get four Aces(!)
and once a straight flush(!!).  Never got a royal flush, though.

There are still a couple of debug messages left for other testers than
me.  I will remove them in a few days.

Refer to bug 30272 - Error picking winner when both players have 2-pair hands 
Refer to bug 70903 - kpoker identifies only one pair
Refer to bug 71693 - all cards are blinking (computer have just two pairs) 

CCMAIL: 30272-done@bugs.kde.org
CCMAIL: 70903-done@bugs.kde.org
CCMAIL: 71693-done@bugs.kde.org


  M +28 -2     kpaint.cpp   1.23
  M +51 -0     kpoker.cpp   1.72
  M +0 -17     kpoker.h   1.33
  M +521 -18   player.cpp   1.14
  M +193 -9    player.h   1.9
  M +6 -1      playerbox.cpp   1.10
  M +30 -0     testers.cpp   1.7