How do I

Get help using Construct 2

Post » Fri Apr 07, 2017 12:38 pm

hi all
working on a poker game (video poker to be precise)
but i'm unaware of the betting logic in the game.

Is there anyone that could offer any help here///

Looking forward for support :? please help
B
20
S
7
G
5
Posts: 16
Reputation: 3,908

Post » Fri Apr 07, 2017 2:09 pm

what kind of game ? hold 'em ? blackjack ?
B
8
S
3
Posts: 46
Reputation: 708

Post » Fri Apr 07, 2017 2:14 pm

You need a Math Engine with RNG (Random number generator) that will calculate RTP (Return to a Player), if you are serious about it.
B
14
S
2
Posts: 21
Reputation: 744

Post » Fri Apr 07, 2017 6:03 pm

Wait, betting logic, like payouts for various hands? I'd recommend doing some googling for that one, or download a video poker app and do some competition market research.
B
18
S
3
G
3
Posts: 82
Reputation: 2,543

Post » Sat Apr 08, 2017 6:25 am

@AnotherUser thank you for the response & it's "VIDEO POKER" played against the house(or the dealer) one on one

@foxium I'll look into it, as I've no idea what it is. Anyways thank you :)

@keatingb that's what i did yesterday.. looks a little complex. Searching for something simpler. thanks for the advice :)

Although, thank you everyone :)
B
20
S
7
G
5
Posts: 16
Reputation: 3,908

Post » Sat Apr 08, 2017 11:45 pm

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Apr 10, 2017 3:17 am

woah ! @99Instances2Go

Thanks for the help.
The capx is helpful.
Also can you suggest me something about adding the joker to the pack via capx. I know the concept but don't know how to apply it.

Appreciate your help ! :)
B
20
S
7
G
5
Posts: 16
Reputation: 3,908

Post » Mon Apr 10, 2017 9:48 am

You did not mention "Joker Poker Video Poker" at all.

I dont know if there is only 1 joker in poker, i suppose there is.
Just add the joker to a new animation. Now it needs its own chance calculation. Because it is not the same chance to occur as a regular card. I guess it is 1 on 53.
so ... after choosing the cards and if ... floor(random(0,54) = 0 then pick a random card and change its face to a joker.
Store the fact that there is a joker or not in a global variable. That will easy it up already some, later on.

Now the easy method would be a loop.
If there is a joker ..... loop all the 'checking' while iterating 'the card that has the face of the joker' to be every other card in the pack. Add the result for each check to a dictionary.

If there is a joker
__For all colors
___For all faces
______set joker card to card (color ... face)
______do the check
______store result in a dictionary
Else
_do the check
_store result in a dictionary


Choose highest payout from dictionary holding the results. (i suppose you dont want to cheat on it)
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Apr 10, 2017 10:01 am

And you need an other payout for 'four of a kind', and for the special case of 'four of a kind': the 'Five of a kind'. That is 4 aces + 1 joker.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Apr 10, 2017 10:15 am

yeah there's only one joker there

Although I've used a completely different method than yours,

if you're willing to look at it i can send you the capx file :)
B
20
S
7
G
5
Posts: 16
Reputation: 3,908

Next

Return to How do I....?

Who is online

Users browsing this forum: LunaticCat and 6 guests