CREATE YOUR AI CUM SLUT ON CANDY.AI TRY FOR FREE
x

Puppet Master

Active Member
Aug 21, 2018
963
1,796
I had a weird thing happen in poker. Playing Lacey, she had a Flush, but I had a Straight Flush. I should have won, but because her flush had a higher card, the computer said she won. I've attached a pic.
 
  • Like
Reactions: imzahai

zapallbugs

Engaged Member
Jul 10, 2018
2,284
2,608
I had a weird thing happen in poker. Playing Lacey, she had a Flush, but I had a Straight Flush. I should have won, but because her flush had a higher card, the computer said she won. I've attached a pic.
Maybe the problem is that there is already a Flush on the table without involving your cards? Or the game doesn't know about Straight Flushes.
 

darkhound1

Well-Known Member
Game Developer
Aug 8, 2017
1,841
8,632
I had a weird thing happen in poker. Playing Lacey, she had a Flush, but I had a Straight Flush. I should have won, but because her flush had a higher card, the computer said she won. I've attached a pic.
From the text it looks like the Straight flush is not detected. I need to check this. Takes a lot of time unfortunately if I can't see the problem directly from the code without debugging it.
 

zapallbugs

Engaged Member
Jul 10, 2018
2,284
2,608
From the text it looks like the Straight flush is not detected. I need to check this. Takes a lot of time unfortunately if I can't see the problem directly from the code without debugging it.
Looks like an extremely rare corner case. There is a Flush on the table and both players have a Flush as well.
In fact I am suprised there is even a winner. If the Straight Flush is not taken into account the high card of all three Flushes is on the table and not with either of the players.
 
Last edited:
  • Like
Reactions: Puppet Master

DuckSwim

Well-Known Member
Jan 19, 2018
1,505
9,458
Took 2 years before someone noticed.
And probably would not have noticed if she was more undressed :giggle:

The following is blind speculation, since it seems like a fun little logical exercise for a thursday evening.
You don't have permission to view the spoiler content. Log in or register now.
 
Last edited:

darkhound1

Well-Known Member
Game Developer
Aug 8, 2017
1,841
8,632
Looks like an extremely rare corner case. There is a Flush on the table and both players have a Flush as well.
It certainly is a rare case.
Still it's a 7 vs 7 card comparisson. It doesn't really matter where the cards are placed. There are no checks or preferences in that regard. I will look into it after I've written the scene I'm workig on right now.
 

zapallbugs

Engaged Member
Jul 10, 2018
2,284
2,608
It certainly is a rare case.
Still it's a 7 vs 7 card comparisson. It doesn't really matter where the cards are placed. There are no checks or preferences in that regard. I will look into it after I've written the scene I'm workig on right now.
Well, this is deep into Poker rules (I am not well versed in them). Example, if there is a full-house on the table and both players have nothing I hope the rules make that a draw and don't give the win to either of the players that happens to have a high card totally unrelated to the full-house.
 
  • Like
Reactions: Puppet Master

darkhound1

Well-Known Member
Game Developer
Aug 8, 2017
1,841
8,632
Took 2 years before someone noticed.
And probably would not have noticed if she was more undressed :giggle:

The following is blind speculation, since it seems like a fun little logical exercise for a thursday evening.
You don't have permission to view the spoiler content. Log in or register now.
Ace does not count as 1, that's why it is not detected.
It's not really a coding error. I don't play poker myself. I simply didn't know that the ace can be used as "1" too.
Unfortunately this is not so easy to fix, because the "straight" evaluation is based on sorted cards right now.
 

DuckSwim

Well-Known Member
Jan 19, 2018
1,505
9,458
Ace does not count as 1, that's why it is not detected.
It's not really a coding error. I don't play poker myself. I simply didn't know that the ace can be used as "1" too.
I rarely play myself but back when I was much young(er) an AI beat me that way.
Remembered it since.

The fun part is that the object now as then was the same.
Better looking girls now though :D

Edit : He is at 311 days so we should let Joy bust him on overstaying his welcome with 221 days. Besides, even the code looks at the boobs after day 90. I claim user error! Abuse of peaceful code taking a well deserved rest! :)
 
Last edited:

zapallbugs

Engaged Member
Jul 10, 2018
2,284
2,608
Ace does not count as 1, that's why it is not detected.
It's not really a coding error. I don't play poker myself. I simply didn't know that the ace can be used as "1" too.
Unfortunately this is not so easy to fix, because the "straight" evaluation is based on sorted cards right now.
I haven't seen the actual code. But the programmer in me would think along these lines: produce two result sets, one with ace counting as 1 and the other with ace counting as 14. Then run the "straight" evaluation twice. In theory that could turn up an even rarer situation with both players having a Straight Flush, one with a low ace and the other with a high ace. Like this:
player 1: two cards from the table, two cards in hand, low ace from the table
player 2: two cards from the table, two cards in hand, high ace from the table
 
  • Like
Reactions: Puppet Master

DuckSwim

Well-Known Member
Jan 19, 2018
1,505
9,458
I haven't seen the actual code. But the programmer in me would think along these lines: produce two result sets, one with ace counting as 1 and the other with ace counting as 14. Then run the "straight" evaluation twice. In theory that could turn up an even rarer situation with both players having a Straight Flush, one with a low ace and the other with a high ace. Like this:
player 1: two cards from the table, two cards in hand, low ace from the table
player 2: two cards from the table, two cards in hand, high ace from the table
OR invoke Rule #4 : Boobs beats all

So Darkhound should create more boob and punish players for not looking at boob.
This leads to the best of both worlds, We get more boob and people learn not to question the game.

Done. Decided. That's the solution. Let there be boob. :p
 

darkhound1

Well-Known Member
Game Developer
Aug 8, 2017
1,841
8,632
Ha-ha :)

I've just added the ace (14) always as a (1) too for the straight checks. Since we only have 7 cards (8 in that case), it shouldn't cause any problems.

Looks like an extremely rare corner case. There is a Flush on the table and both players have a Flush as well.
In fact I am suprised there is even a winner. If the Straight Flush is not taken into account the high card of all three Flushes is on the table and not with either of the players.
Without the straight, Lacey has A, J, 7 ad player only has A, J, 5 - so Lacey wins.
 

zapallbugs

Engaged Member
Jul 10, 2018
2,284
2,608
Ha-ha :)

I've just added the ace (14) always as a (1) too for the straight checks. Since we only have 7 cards (8 in that case), it shouldn't cause any problems.


Without the straight, Lacey has A, J, 7 ad player only has A, J, 5 - so Lacey wins.
Ah, I told I was a noob at Poker rules.
 
  • Like
Reactions: Puppet Master

Puppet Master

Active Member
Aug 21, 2018
963
1,796
What's weird is that I think a girl once beat me with a straight flush. Of course, it could have been evaluated differently, so that she beat me with a higher flush. Still I think it's what Darkhound1 said, the game recognizes the Straight Flush (although it happens as aften as a Hole-In-One), but fails to recognize the Ace as a 1 in such cases.

From my FAQ:
You don't have permission to view the spoiler content. Log in or register now.
 
Last edited:

Puppet Master

Active Member
Aug 21, 2018
963
1,796
Also, there should be a cooldown for playing poker with a girl, sort of like with Hotshots. If you play strip poker with a girl, then ask her to play again the same night, she should decline the offer, saying: "We just played poker a little while ago. Ask me again tomorrow." Also, she should decline to play poker with you if she's angry with, "I'm not doing that, I'm still mad at you!" Of course, you should still be able to play poker with other girls om the same night, just not more than one game with the same girl in one night.
 

darkhound1

Well-Known Member
Game Developer
Aug 8, 2017
1,841
8,632
Also, there should be a cooldown for playing poker with a girl, sort of like with Hotshots. If you play strip poker with a girl, then ask her to play again the same night, she should decline the offer, saying: "We just played poker a little while ago. Ask me again tomorrow." Also, she should decline to play poker with you if she's angry with, "I'm not doing that, I'm still mad at you!" Of course, you should still be able to play poker with other girls om the same night, just not more than one game with the same girl in one night.
I've added the cooldown. It's two days break now. It was already in place, but not completely implemented.
I didn't add anger, because right now it's not really used anywhere. If I start with it, I do it as a general change.
But I've added affection requirements instead.
 
  • Like
Reactions: Puppet Master

darkhound1

Well-Known Member
Game Developer
Aug 8, 2017
1,841
8,632
I also posted on DH patreon page.

darkhound1, I checked the memory usage while playing (with HWmonitor) and it seems that is the graphic card memory that is over used. I have a 2Go GC and at the end of the day (in game ), it can be at 90% usage if I played hotshots, toyed with the room wallpaper and such. Note that now I rarely crash because of the mem purge but the leak remains. I think you never have been able to reproduce it because of your high video memory.
There is not much I can do about it (except call renpy.free_memory() more often). It's a problem between Renpy, Python and the high resolution webp images I'm using now.

I've added the free memory in several spots now as well:
  • when you put your phone away
  • when an interactive sex scene starts
  • when an interactive sex scene ends
  • when a multi frame animation ends
  • when you put away the binoculars
If necessary I could do it for each scene that starts. But this will require adding it in a lot of places, which I would like to avoid.
 
4.00 star(s) 232 Votes