Ranking Poker Hands
#18
So nobody has any idea how to settle ties between pairs which is going to be a problem. Not as bad as spouse beating but there are better forums for that, I hope.

There are probably better forums to explain why Fisher Yates is best shuffle algo, no one here is going to tolerate sitting through the math.

Pardon my Columbian but this is crap!
Code: (Select All)
for a=1 to 52
do
    swop=int (rnd*52)+1
loop while swop=a
swap deck$(a),deck$(swop)
next

WTH? 2 loops structures yikesl What's wrong with keeping a card right where it is, on occasion? If you demand that it be moved you wreck the random distribution. You should allow a card not to be swapped or swapped with itself. It is explained in the Wiki article why, but like I said it's a mathematical argument that even Steve couldn't sit through, so what can I say. I go Columbian, sure!
b = b + ...
Reply


Messages In This Thread
Ranking Poker Hands - by bplus - 10-11-2022, 05:52 AM
RE: Ranking Poker Hands - by PhilOfPerth - 10-11-2022, 07:00 AM
RE: Ranking Poker Hands - by bplus - 10-11-2022, 01:15 PM
RE: Ranking Poker Hands - by PhilOfPerth - 10-13-2022, 02:20 AM
RE: Ranking Poker Hands - by Pete - 10-11-2022, 08:54 AM
RE: Ranking Poker Hands - by bplus - 10-11-2022, 01:21 PM
RE: Ranking Poker Hands - by TerryRitchie - 10-11-2022, 02:11 PM
RE: Ranking Poker Hands - by Pete - 10-12-2022, 09:03 AM
RE: Ranking Poker Hands - by TerryRitchie - 10-12-2022, 01:44 PM
RE: Ranking Poker Hands - by Pete - 10-13-2022, 02:33 AM
RE: Ranking Poker Hands - by bplus - 10-11-2022, 02:20 PM
RE: Ranking Poker Hands - by bplus - 10-12-2022, 03:05 PM
RE: Ranking Poker Hands - by Pete - 10-12-2022, 03:52 PM
RE: Ranking Poker Hands - by TerryRitchie - 10-13-2022, 02:35 AM
RE: Ranking Poker Hands - by Pete - 10-13-2022, 05:45 AM
RE: Ranking Poker Hands - by mnrvovrfc - 10-13-2022, 04:24 AM
RE: Ranking Poker Hands - by PhilOfPerth - 10-13-2022, 04:42 AM
RE: Ranking Poker Hands - by bplus - 10-13-2022, 12:31 PM
RE: Ranking Poker Hands - by bplus - 10-13-2022, 01:37 PM
RE: Ranking Poker Hands - by Pete - 10-13-2022, 03:47 PM
RE: Ranking Poker Hands - by TempodiBasic - 10-15-2022, 07:44 PM
RE: Ranking Poker Hands - by TempodiBasic - 10-15-2022, 07:49 PM



Users browsing this thread: 18 Guest(s)