How do I get a working random/shuffled card system?

Get help using Construct 2

Post » Fri Mar 17, 2017 1:51 am

Thanks a lot @blackhornet & @Kyatric for your time

and I'm currently going through your links @Kyatric (thank you once again, this is helpful stuff)

I'm uploading th capx file

https://mega.nz/#!cM8lXIKI!h3IMrQFTJtOH ... VWonIiE33E

made a lot of changes overnight..
It's different than the last one and ain't working
B
20
S
7
G
5
Posts: 16
Reputation: 3,908

Post » Fri Mar 17, 2017 2:43 am

http://www.blackhornettechnologies.com/Construct2Stuff/Shuffle_BHT.capx
With Smart Random and a decoding function to convert the numbers 1 to 52 to your CiS format.
ImageImageImage
B
71
S
21
G
221
Posts: 3,650
Reputation: 124,229

Post » Fri Mar 17, 2017 3:15 am

Hey @blackhornet

Thank you for providing the method :D 8-)

but is it possible to sort the cards after applying the BHT
Also great job with the Plugin :mrgreen:
B
20
S
7
G
5
Posts: 16
Reputation: 3,908

Post » Fri Mar 17, 2017 3:20 am

Sort them how?
ImageImageImage
B
71
S
21
G
221
Posts: 3,650
Reputation: 124,229

Post » Fri Mar 17, 2017 3:21 am

in a descending order to compare the values for poker hands like one pair, two pair etc
B
20
S
7
G
5
Posts: 16
Reputation: 3,908

Post » Fri Mar 17, 2017 3:39 am

There's various algorithms for poker. Sorry, I can't help beyond decoding the cards, as in the given function. Either Goggle "poker algorithm code" or maybe someone else has done this already.
ImageImageImage
B
71
S
21
G
221
Posts: 3,650
Reputation: 124,229

Previous

Return to How do I....?

Who is online

Users browsing this forum: sublimate and 1 guest