How the Buckshot Roulette Dealer AI works (and how you can use it to win)

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ •

  • @delightfulkissboy8926
    @delightfulkissboy8926  11 місяців тому +1528

    EDIT: I think I've found the cause for the bug I'm describing at 23:44. This happens when the dealer uses beer in conjunction with magnifying glasses. The dealer uses the MG, sees it's a blank, then uses beer. The beer ejects the round, but does not clear the "known round" flag, which only gets cleared after a shot. The dealer has another magnifying glass, but he still thinks he knows what the round is and thinks it's a blank. So if I'm understanding this correctly, MG into beer from the dealer will always result in dealer shooting himself and will not use another MG, unless he gets to the final shell in the loadout, in which case his "known round" flag gets reset to whatever the actual last shell is. I think this is actually a useful thing to know.
    A couple clarifications:
    18:48 - I say that cigarettes don't really matter because he may not get a turn. This is obviously true for all items, so I meant he may not get a turn where he is damaged to use them. I.e. you may miss, then he goes and can't use cigarettes since he's still at full health, then you deal enough damage to kill him, or deal damage then go to the next loadout.
    23:44 - The scenario I'm talking about here is that I think I've seen him use a magnifying glass, see a blank, shoot himself, then not use another magnifying glass and just shoot even though he has another magnifying glass. Almost all of the time he uses the 2nd magnifying glass here, but I think at least once he hasn't. It's strange because I don't see what's causing that in the code.

    • @trevorhaddox6884
      @trevorhaddox6884 11 місяців тому +79

      This happened in Nogla's 14mil game, dealer had two MGs but still immediately shot himself.

    • @delightfulkissboy8926
      @delightfulkissboy8926  11 місяців тому +101

      @@trevorhaddox6884 Interesting! Now to report to the dev or to keep as a little secret exploit among friends, decisions decisions... 🤭

    • @ridhosamudro2199
      @ridhosamudro2199 11 місяців тому +61

      He got intoxicated and forgor (skull emoji)

    • @chinstion
      @chinstion 11 місяців тому +2

      Why does this only happen some of the time then?

    • @spriteryduck411
      @spriteryduck411 11 місяців тому +3

      ​@@delightfulkissboy8926 Hey, I have a doubt, you say that "the dealer chooses the objects he will use in a random order" but I have noticed in his behavior that he always tends to use the beer first, regardless of the other items he has, he always drinks first before starting to Using other items, is it a coincidence, or is it something that is engraved in the dealer's behavior?

  • @grayanderson2761
    @grayanderson2761 11 місяців тому +2790

    The best description I've heard of the TL;DR of how the dealer works is from Markiplier.
    "This guy...this guy's bold. He's VERY bold. He's not SMART.....but he's bold."

    • @deyontemyers4109
      @deyontemyers4109 9 місяців тому +134

      Sounds like your typical lucky freind who manages to kill 6 bosses at once because he wants to clear out a village, and you're just stuck thinking, WHY AND HOW DID YOU DO THAT

    • @williamlux
      @williamlux 8 місяців тому

      @@deyontemyers4109 me after beating viper on master with scorch after 10 tries
      And then coming back a year later and taking a bazillion tries to repeat it

    • @Helpertf2
      @Helpertf2 7 місяців тому +43

      Not just "bold" bald too (yes I did do that joke)

    • @menacingarc2297
      @menacingarc2297 7 місяців тому +16

      ​@@Helpertf2Booo...
      👎

    • @consoleman3707
      @consoleman3707 7 місяців тому +9

      Lol

  • @malfolin
    @malfolin 11 місяців тому +4489

    I once saw a dealer chug 3 beers and shooot themselves. He was owned so hard he decided to quit.

    • @iliveintrash5233
      @iliveintrash5233 11 місяців тому +368

      He's just like me

    • @tenyearsinthejoint985
      @tenyearsinthejoint985 11 місяців тому +244

      Did you see that from Manly's playthrough?

    • @malfolin
      @malfolin 11 місяців тому +121

      @@tenyearsinthejoint985 how did you know?

    • @Error-zg2if
      @Error-zg2if 11 місяців тому +95

      ​@@malfolin It was quite famous

    • @susangoaway
      @susangoaway 11 місяців тому +7

      How many dealers?

  • @omegahaxors9-11
    @omegahaxors9-11 11 місяців тому +8365

    The game description calls him "crooked" despite the fact he plays completely fair. My guess is that he doesn't bother to count the bullets he just cheats and looks at the last one and memorizes that one instead.

    • @godknightomega
      @godknightomega 11 місяців тому +1198

      I mean that is still technically fair.
      We count all of the shells too.
      Knowing the last shell after every other one is expended is probably the easiest.

    • @Drave_Jr.
      @Drave_Jr. 11 місяців тому +265

      @@godknightomega Though he should know if all blanks or live rounds are out as well.

    • @MyMika2004
      @MyMika2004 11 місяців тому +304

      i mean, if its 3 live 4 blank and youve shot 4 blank 2 live, its not too hard to figure out what it is

    • @KENNYd04360
      @KENNYd04360 11 місяців тому +66

      @@MyMika2004 Right, but if 3 blank and 1 live are out, the dealer know in what order the bullet will come !

    • @voodoo1177
      @voodoo1177 11 місяців тому +149

      @@KENNYd04360 The dealer wouldn't know, it only knows the last shell, since it's code and not a person, It doesn't count what has been fired. As far as it knows, there may be 2 blanks or 2 lives, rather than just 1 blank and 1 live, which you can easily get by paying attention to how many of each shell was loaded (the dealer does not know what has been loaded, only that last shell).

  • @omegahaxors9-11
    @omegahaxors9-11 11 місяців тому +4362

    In practice the handcuffs and cigarettes are the worst thing for the dealer to get, because they will always use them optimally.

    • @lighterflud
      @lighterflud 11 місяців тому +354

      To be fair, how do you even use cigarettes unoptimally?

    • @lighterflud
      @lighterflud 11 місяців тому +56

      To be fair, how do you even use cigarettes unoptimally?

    • @llewelynshingler2173
      @llewelynshingler2173 11 місяців тому +532

      @@lighterflud Using them when you are at full health

    • @aarepelaa1142
      @aarepelaa1142 11 місяців тому

      But spy glasses and saws get you killed

    • @ThePenisMan
      @ThePenisMan 11 місяців тому

      @@lighterflud or not using them immediately when injured, because sometimes the one health matters next opponents turn

  • @IxodesPersulcatus
    @IxodesPersulcatus 11 місяців тому +1353

    Now I'm addicted to booze, drugs, and gambling, but in this life that's an optimal strategy.

  • @hatsuneblacktrousers
    @hatsuneblacktrousers 8 місяців тому +576

    some things i've noticed about dealer in the update:
    1. he now knows when there are only blanks or only lives left
    2. he never uses expired medicine if he's at 1 health
    3. if he's taken any damage, he will always use expired medicine unless he has a cigarette
    4. he still drinks a beer after using a magnifying glass, in fact, if he has adrenaline, he'll steal your beer instead of just shooting himself

    • @zakutskov
      @zakutskov 7 місяців тому +136

      so basically he can count now, and he's heavily addicted to beer

    • @swiggityshooty3632
      @swiggityshooty3632 7 місяців тому +42

      Idk, I played against him today, and he killed himself with the medicine during round 2

    • @hatsuneblacktrousers
      @hatsuneblacktrousers 7 місяців тому +14

      @@swiggityshooty3632 hmm
      i guess it might be possible, but very unlikely

    • @bigboi3103
      @bigboi3103 7 місяців тому +25

      so an alcoholic with a shotgun fetish?

    • @PureMusizuEntertainment
      @PureMusizuEntertainment 5 місяців тому +6

      ​@@zakutskovomg just like me

  • @PKMNTrainerKelly
    @PKMNTrainerKelly 11 місяців тому +3573

    7:28 that's wrong, actually. it's a 100% chance of being a blank if i point it at the dealer and 100% chance of being live if i point it at myself. at least, that's how it felt in my playthroughs

    • @delightfulkissboy8926
      @delightfulkissboy8926  11 місяців тому +830

      Real

    • @speeddemon5339
      @speeddemon5339 11 місяців тому +235

      I honestly feel as if that’s what’s happening, not in the code, but in the game’s universe. We already know that the Dealer has fought God, and won which means that when he’s fighting the player, he’s most likely just dicking around. If he loses, it’s just money, which is pretty inconsequential when considering the type of being that he is. Although, I think we all know that the real God is the player character, as they are the only one with the capability to beat the dealer, no matter how many times they have to reset. It doesn’t really make sense how the dealer could kill god, because if the dealer killed god, he kills himself too. It would be like a person’s alter ego killing the body that it resides in, like congratulations dumb ass, you fucked yourself.

    • @santini1224434
      @santini1224434 11 місяців тому +121

      ​@@speeddemon5339i always thought of the "God" waiver as just someone who thought of themselves as unable to lose, but at the end they died anyways

    • @PresWorldWid
      @PresWorldWid 11 місяців тому

      @@santini1224434never thought of it that way. Still fits the idea of gambling and from what i feel like the meaning of the game is how gambling is toxic/deadly when addicted to it ya know

    • @shinoku250_gaming
      @shinoku250_gaming 11 місяців тому +123

      ​@@santini1224434unfortunately the death cutscene shows you heaven, abandoned and in complete disarray, which means the actual god lost : /

  • @MTNDEWGANG
    @MTNDEWGANG 11 місяців тому +2057

    I love when people are so passionate about games when they decide to crack the entire game open and look through and see how the game works, down to values and how it can boil down in future plays. Glad this is getting recommended. Hope you do this more for future interesting games.

    • @delightfulkissboy8926
      @delightfulkissboy8926  11 місяців тому +183

      Thank you! 🙏 Was thinking about doing just that, I find it really interesting to see how devs code in general, especially AI

    • @MTNDEWGANG
      @MTNDEWGANG 11 місяців тому +34

      @@delightfulkissboy8926 keep it up gang, would like to see you dissect sometime like F.E.A.R'S ai or Half life 2's source engine capabilities.

    • @flamingdog9207
      @flamingdog9207 10 місяців тому +2

      For whatever reason, I find looks under the hood in games like this really interesting, seeing how a game's AI works, what makes it tick, etc.

    • @hazeltree7738
      @hazeltree7738 10 місяців тому

      @@flamingdog9207 You might want to check out "Tech Rules" then, he's done videos on the AI of Five Nights at Freddy's as well as Baldi and they're both very interesting :)

  • @GarrettRatliff96
    @GarrettRatliff96 11 місяців тому +986

    With this knowledge out, I am become dealer, destroyer of high scores

    • @fluoxvonhoovienheimer4706
      @fluoxvonhoovienheimer4706 11 місяців тому +51

      Oppenheimer if he was a gambler:

    • @DonickPL
      @DonickPL 11 місяців тому

      ​@@fluoxvonhoovienheimer4706it was openheirmer who said that?

    • @balramduttsharma1727
      @balramduttsharma1727 11 місяців тому

      @@fluoxvonhoovienheimer4706 oppenheimer if he was unemployed

  • @bandit5875
    @bandit5875 11 місяців тому +1019

    Being down to your last “charge”, along with the dealer, and watching him Kurt Cobain himself is such a hilarious, victorious experience.

    • @rick30521
      @rick30521 11 місяців тому +136

      "Luigi wins by doing absolutely nothing" kinda endgame

    • @MasterJunior93
      @MasterJunior93 11 місяців тому +9

      That happened in one of my playthroughs.

    • @Billytub8003
      @Billytub8003 11 місяців тому +68

      “Kurt Cobain himself” is crazy

    • @williamlux
      @williamlux 10 місяців тому +8

      Dealer: "hey guys, I guess that's it"

    • @Brick_Eater_
      @Brick_Eater_ 9 місяців тому +11

      ​@@Billytub8003do you remember that level from doom 2 called "nirvana" that spawns you in front of a shotgun

  • @wr3nche5
    @wr3nche5 11 місяців тому +1311

    i wonder if the dev will add in a "hard mode" where he actually counts the shells like a human would and just. . . generally be smarter. that'd be cool to see

    • @ambi_cc8464
      @ambi_cc8464 11 місяців тому +7

      fr lol

    • @furiouscorgi6614
      @furiouscorgi6614 11 місяців тому +83

      ​@@ambi_cc8464 and it wouldnt be that hard. Instead of randomly deciding, the odds of shooting the player is live rounds/total rounds, if dont shoot player shoot self

    • @fanndx
      @fanndx 11 місяців тому +67

      Personally, I don't like the idea of "normal' mode & hard mode in these kind of games, as it's practically pointless when you want to feel the experience. If smarter AI would be implemented, I hope it would be replace the old one, as in intended difficulty.

    • @realperson9951
      @realperson9951 11 місяців тому +13

      they should make it calculate the chances before rolling the dice too, thatd significantly help him in gambles

    • @realperson9951
      @realperson9951 11 місяців тому +10

      the dev could probably also make a nightmare difficulty by having him consider every items on board including the player's

  • @JohnnyGuiltyMan
    @JohnnyGuiltyMan 11 місяців тому +358

    I played this game with my friend and we laughed our heads off when the Dealer decided to shoot itself after checking what kind of round was in the chamber. I really hope they can implement a 2-player mode so that we could play this against friends, it would raise the replay value significantly

    • @Aaa-vp6ug
      @Aaa-vp6ug 7 місяців тому +14

      Russian Roulette: Safety On

    • @rat48785
      @rat48785 7 місяців тому +26

      If you look in the steam updates, they're adding a multiplayer mode very soon. Its even advertised on the steam page of the game.

    • @JohnnyGuiltyMan
      @JohnnyGuiltyMan 7 місяців тому

      @@rat48785 Yeah it was long before the Steam release when I played this game, I haven't even seen the new stuff that they've added

    • @blackcat14077
      @blackcat14077 2 місяці тому +8

      Good news

    • @JohnnyGuiltyMan
      @JohnnyGuiltyMan 2 місяці тому +4

      @blackcat14077 Is the Dacia Sandero finally coming to the right hand drive market?

  • @vomgurl
    @vomgurl 9 місяців тому +31

    i love the muffled music from the game in the background, its honestly such a banger

    • @sarahtonin58913
      @sarahtonin58913 Місяць тому +2

      I feel like I'm being briefed outside the club before I go in

    • @shgamer2437
      @shgamer2437 Місяць тому

      @@sarahtonin58913 he's lecturing you in the bathroom, probably the dude that uses the defibrator to respawn you after you run out of charges (only in 1-2 rounds tho)

  • @lampionmancz
    @lampionmancz 11 місяців тому +377

    To be fully honest I have no problem dealing with him myself, but this video was still amazingly nice to watch. Very good, high quality and informative. Keep up the good work mate!

  • @mikeklubnika
    @mikeklubnika 11 місяців тому +541

    Awesome video. I agree, the AI is pretty primitive for the time being, so better cash out that $$$ while there's still time.

    • @delightfulkissboy8926
      @delightfulkissboy8926  11 місяців тому +120

      Eyy, great job with the game, man! I've been loving it. Glad you enjoyed the vid!
      Probably goes without saying that calling the AI dumb is by no means a criticism of the game, honestly makes it more fun to try to game it for high scores 👌

    • @delightfulkissboy8926
      @delightfulkissboy8926  11 місяців тому +112

      Also lemme know if you want a second pair of eyes on the code or w/e; I'm a software engineer, so reviewing code is like 50% of my job haha.

    • @AlexCreeper
      @AlexCreeper 11 місяців тому +1

      oh wow hey man

    • @xmaker9065
      @xmaker9065 11 місяців тому +3

      Will you ever Do a mobile port for the game?

    • @maxinehayes90
      @maxinehayes90 11 місяців тому +8

      ​@@delightfulkissboy8926I knew it based on your humor alone! Been loving the videos man.

  • @DoomRater
    @DoomRater 11 місяців тому +264

    I like how rule number 2 happens before rule number 3, and rule 1 happens before either (the dealer will use a magnifying glass and then a beer despite rule 3 saying he can just shoot himself- he has more items to use dammit)

    • @endieisfridgeconfirmed
      @endieisfridgeconfirmed 11 місяців тому +1

      “rule number 2 happens before rule number 3”
      Aint that just basic counting

    • @DoomRater
      @DoomRater 11 місяців тому +14

      @@endieisfridgeconfirmed The point is that they don't happen in a sequence per item, they always take priority even though logically using a magnifying glass should dictate the rest of the turn order once used

  • @jacky7204
    @jacky7204 11 місяців тому +186

    I've looked at some of the code myself, and it seems to me he prioritizes items in the order he got them. Naturally, you can't see the specifics of this order in game, because you're getting your own items in that time. But it should become apparent from one turn to the next (I think). EDIT: oops, you talked about that! yay datamining.
    I also noticed some weird code that seems to add and remove cigarettes from the item pools based on, I think, the amount the dealer gets? I didn't quite understand what that code did, probably for either fairness or keeping rounds from dragging out too long.
    I love the explanation with expected value and building up from the simpler two-shell scenario. Way clearer than trying to simultaneously think about like eight possibilities for the odds.

    • @alien3200
      @alien3200 2 місяці тому

      How do you see the code of games. I'm new to this so I don't know

    • @jacky7204
      @jacky7204 2 місяці тому

      @@alien3200 You can Google reverse engineering tools for Godot (the engine Buckshot Roulette was made in). It generates a slightly-incomplete project file that you can then open in Godot and get the code from.

  • @AyubuKK
    @AyubuKK 11 місяців тому +459

    The developer’s gonna watch this and take notes. I know the dealer makes the best possible decisions in every circumstance, but it would be so cool if the Dealer takes into account both his AND your items. And every time you play, yours and his decisions as well as items used from the last games gets saved into the AI’s memory. And so the Dealer is able to 1 up you in the next game in any way he can. Thanks for clarifying your 2nd observation. It didn’t make sense to me.

    • @RiteOfSolaris
      @RiteOfSolaris 11 місяців тому +14

      I believe the dev is infact tweaking the AI.

    • @edward3190
      @edward3190 11 місяців тому +24

      the goal of game dev is to create an enjoyable and exciting experience. If the dealer acts optimally, the game would be boring, predictable and hard.
      So probably not gonna make it too smart.

    • @bruhthatexists
      @bruhthatexists 11 місяців тому

      ​@@edward3190It would work well with new opponents having different difficulty and behavior

    • @CluelessSociety
      @CluelessSociety 9 місяців тому +2

      That would ruin the game entirely 🤣

  • @Frank_Erz
    @Frank_Erz 11 місяців тому +69

    this might just be the highest OK-per-minute I've ever heard

  • @__rogalik__7936
    @__rogalik__7936 11 місяців тому +118

    Imagine fairness update, where Mike Klubnika actually implements all the smart plays, like counting the bullets

    • @youtubeenjoyer1743
      @youtubeenjoyer1743 11 місяців тому +9

      For such a simple game, you would expect this to be the case.

    • @jasonslade6259
      @jasonslade6259 10 місяців тому +25

      I think its actually good that the dealer is a little bit stupid. If the dealer played optimally and the player plays optimally, then the entire game just becomes pure chance. If the player is playing sub-optimally, which is the case probably 90% of the time, then the dealer has a big advantage.
      If the dealer is a little dumb, then it gives more room for the player to play smart and increase their odds of winning. You want player choices to matter, that's the whole point of a game.

    • @youtubeenjoyer1743
      @youtubeenjoyer1743 10 місяців тому

      @@jasonslade6259 The problem is that the game is not that complex to begin with. Rounds with a lot of cartridges and items could be much more fun if the opponent tried to appear slightly more intelligent. The current version of the game is heavily skewed towards the player, and that affects replayability a lot.

    • @darylwerder7064
      @darylwerder7064 9 місяців тому +1

      In the newest version of the game in the Double or Nothing, the dealer does count how many bullets are left (i.e. 8 shells, 4 live, 4 blank, 2 lives have already been fired, the dealer will choose to shoot self because it's a greater chance the shell is a blank)

    • @matty1094
      @matty1094 Місяць тому

      @@darylwerder7064 is this true?

  • @faecterr
    @faecterr 11 місяців тому +39

    This mans 'Okay' storage in never out of stock

  • @ChrisNinjaEagle
    @ChrisNinjaEagle 11 місяців тому +103

    Hoping this blows up, this is unique, informative, high quality stuff right here

    • @delightfulkissboy8926
      @delightfulkissboy8926  11 місяців тому +10

      Thanks, really appreciate that! Glad you got something out of it 👌

  • @piggy743
    @piggy743 11 місяців тому +53

    I've never even played the game, just watched youtubers play it, and I still find this super interesting.

  • @talongreenlee7704
    @talongreenlee7704 11 місяців тому +157

    The fact that he doesn’t count cards and just checks the last round he puts in so he knows what to do at the end despite that not being the best play kind of characterizes him as being cocky and thinking that he’s pulling one over on you by cheating even though he’s actually stupid, which makes sense for a character that would play a game like this. I love that. It’s characterization and storytelling through game mechanics that you’d have no idea about unless you crack the game open and see how he’s making his decisions. If you can see into his head and know how he thinks, then you get a feel for what kind of person he is, but you’d never know by just playing the game unless you played for a really long time actively trying to figure him out.

    • @azurabbit12
      @azurabbit12 11 місяців тому +28

      Yeah no imo that's a godawful reading trying to tie how it works behind the scenes in the code into actual game characters, the dealer plays fair, and that makes it a way more interesting character than if it was just cocky and trying to subtle cheat, the reason why in the code the dealer knows what the last round is is cus literally any player would be able to deduce that, as the video explains, the fact it knows what the last shell is only comes into play WHEN the last shell in the round is being played, so it's fair to assume that it knows that through simple deduction skills, if there were 4 lives and 3 blanks you'd know what's the last round if 3 lives and 3 blanks were shot

    • @talongreenlee7704
      @talongreenlee7704 11 місяців тому +10

      @@azurabbit12 you’d also know what rounds are in the gun if there’s only two live rounds left, but the dealer doesn’t. Sometimes he’ll still choose himself even when there’s only live rounds and sometimes he’ll choose you even when there’s only blanks. You can tell he’s not using intuition to deduce the rounds remaining in the gun because there are times when he would have information if he were using deduction, but by his actions you can tell that he doesn’t have that information, so he must not be using deduction. He cheats, checking the last round to know what it is without realizing there’s an easier way to get more information. This demonstrates that he’s a bit of an idiot, and he never realizes his mistake even after seeing you absolutely thrash him, so there’s probably a bit of ego in the way of him realizing his mistake.

    • @Lesalledebains
      @Lesalledebains 10 місяців тому +10

      ​@@talongreenlee7704no, the person you replied to is right. The reason the dealer can make a mistake when there's 2 live rounds was simply because the person who made the game didn't want the dealer to "count cards" during the game and simply only know the last round for balance reasons. In the same way anyone could figure out what the last 2 shells are, people make mistakes, and can misremember the ratio or number of shells total. It makes sense that the dealer doesn't have a perfect memory because humans don't either. Equating fair or even lazy game design as cannon lore doesn't make sense to me, if it was a higher budget game or something I might expect them to put more thought into how ai patterns affect lore.

  • @pining_tree6788
    @pining_tree6788 11 місяців тому +70

    The fact that the dealer would do the 50/50 even if the bullet type is easy to figure out but either not the last or mg’d makes me wonder if there will ever be a version of the ai made that does count the bullets and makes decisions on that basis

    • @DeonGaming
      @DeonGaming 11 місяців тому +13

      That would be easy to implement too.
      1) Count all blank and real shells in the beginning.
      2) Substract each type of shell when used accordingly.
      3) Instead of doing 50/50 random roll, do the roll according to blank/real ratio to do a specific algorithm (yourself/opponent).
      I am kind of surprised they didn't implement it.

    • @furiouscorgi6614
      @furiouscorgi6614 11 місяців тому +6

      ​@@DeonGamingtechnically, in code it wouldn't be that. It just needs to track live rounds and remaining rounds, and then, pick a random integer between 0 and remaining rounds, inclusive. If the random is less than live round, shoot enemy, else shoot self

    • @morgantrevino4881
      @morgantrevino4881 8 місяців тому

      @@furiouscorgi6614we found the coder in the room

    • @alien3200
      @alien3200 2 місяці тому

      This was an indie game (i think) so the developer might add in future

  • @sambenedict7804
    @sambenedict7804 11 місяців тому +43

    11:01 “now heres the thing; that’s stupid actually. (sorry.)”
    had me cracking up, new sub 🙂
    edit: also this is a great video on a nice topic, i look forward to seeing what else you create

  • @izu6833
    @izu6833 11 місяців тому +31

    I still love how Dealer can check bullet and still shot himself with life round

    • @near5148
      @near5148 2 місяці тому +1

      He was like alright I lost

  • @thehans255
    @thehans255 11 місяців тому +118

    I'd be interested to see a mod where the dealer actually uses minimax (or expectiminimax, as the case would be here). Though I imagine that his behavior here is better for average game balance.

    • @dan_2247
      @dan_2247 11 місяців тому +2

      it'll become unplayable

    • @blueyoshi4211
      @blueyoshi4211 11 місяців тому +28

      @@dan_2247 nah, since you always go first, you still have a major advantage even against an AI who is making optimal choices I bet

    • @heliosspecialistarrogant7031
      @heliosspecialistarrogant7031 11 місяців тому +3

      ​​@@blueyoshi4211better the a.i always go kurt kobain

    • @rick30521
      @rick30521 11 місяців тому +4

      Have you played chess against AI? Yeah, that'd happen. Chess AI is fucking scary for no reason.

    • @thehans255
      @thehans255 11 місяців тому

      @@rick30521 Chess against an AI is impossible because chess is not a game of chance. Faced with both random items and a hidden random shell order, the AI is just going to do the best with what it's got, which may not be much.

  • @Luigifan4ever11
    @Luigifan4ever11 11 місяців тому +41

    Thank you for this! This is a wonderful look into how it works, and you present it in an entertaining and easy to follow way. Part of me is interested in seeing a mode where the dealer actually keeps odds in mind (being able to use the same logical deduction we have, like in the 1 live/2 dud, seeing a dud go off, and knowing that there's a 1/2 chance) - but I understand there's a difference between realistic AI and an AI that's actually fun to play against, and I'm not sure where a more realistic AI logic would fall.

    • @delightfulkissboy8926
      @delightfulkissboy8926  11 місяців тому +8

      Really appreciate it! And yeah, I was thinking a similar thing. Was gonna try and write a bot to play the game in a smart way using monte carlo simulation, so maybe I'll actually follow through with that but try and plug it into the dealer AI instead lol.

    • @uncreativecultist
      @uncreativecultist 11 місяців тому

      @@delightfulkissboy8926i have a full decomp of the code that can be recompiled from source if you want to use it to make your mod!

    • @Luigifan4ever11
      @Luigifan4ever11 11 місяців тому +1

      @@delightfulkissboy8926 Interesting! I hope that goes well, I'd love to see how it goes.

    • @delightfulkissboy8926
      @delightfulkissboy8926  11 місяців тому +2

      ​@@uncreativecultistOh nice, that would be sick actually, is it uploaded somewhere?

  • @KaGoodPlayer999
    @KaGoodPlayer999 11 місяців тому +39

    Thanks for the online lesson, teacher!
    You honestly have a really nice "no bullshit" charm to how you explain things in this video, so I might actually check out your channel!

  • @simpsondr12
    @simpsondr12 11 місяців тому +9

    Never played this game, got no idea why UA-cam recommended this video...
    Absolutely fascinating, great video.

  • @entaroadun18
    @entaroadun18 11 місяців тому +17

    The powerpoint presentation hooked me in, no lie

  • @Mauser0
    @Mauser0 10 місяців тому +3

    I don’t ever plan on playing this game, however I have been a ton of strategy videos. It’s more fun to watch knowing what’s happening.

  • @CysmaWinheim
    @CysmaWinheim 10 місяців тому +18

    If I were to write a smarter AI pattern, it would go something like this:
    1. If any health is missing, use cigarettes.
    2. If there are at least 2 shells remaining, use magnifying glass.
    3. If current shell is determined to be live, use handsaw.
    4. If at least one other live round is remaining, use handcuffs.
    5. If the current round is determined to be live, fire at opponent.
    6. If the current round is determined to be blank, fire at self.
    7. If the current round is undetermined but the ratio of remaining blanks to live rounds is 50% or greater, and there is more than one shell remaining, use beer.
    8. If the current shell is still undetermined, choose randomly to fire at opponent/self based on current ratio of remaining live/blank shells.
    Maybe not the most optimal AI, but probably still harder to beat than the current one.

    • @Kalmaro4152
      @Kalmaro4152 7 місяців тому +5

      yeah, that AI would probably be REALLY difficult to play against. I'd imagine that to be a "Hard Mode" game play wise. And then in the "Very Hard Mode" the dealer will know what the last shell in the tube is, and plan his game around that as well.

    • @furiouscorgi6614
      @furiouscorgi6614 7 місяців тому +1

      ​@@Kalmaro4152that AI covers for a last-round situation, since the last round will either be 1:0 or 0:1 ratio and its guaranteed to play properly with it

  • @Thesnakerox
    @Thesnakerox 8 місяців тому +10

    Commenting from the future to note that I'm pretty sure in the Steam version's Double Or Nothing, Dealer actually keeps count of the shells in the gun. If there are more live shells than blanks left, he always shoots you. If there are more blanks, he always shoots himself (or inverts and then shoots you). And I think if there's an equal number of live and blank, he does a coin flip.
    That's just me guessing based on my observation, so I could be wrong though!

    • @zakutskov
      @zakutskov 7 місяців тому +1

      that's why the rule number one of double or nothing mode is if you can, do not give the dealer any turn at all

  • @omegahaxors9-11
    @omegahaxors9-11 11 місяців тому +238

    Dealer be like
    😁🔍 Hmm interesting...
    😁💥🔫

  • @CocoForBird
    @CocoForBird 11 місяців тому +23

    This keeps coming up in my recommended lol. I have never played this game, I don’t know what’s happening. Coming from a CS background though, I love the code analysis.

    • @delightfulkissboy8926
      @delightfulkissboy8926  11 місяців тому +7

      Yeah haha, kind of have a split audience between BG3 and this game rn. But same! I'm actually a software engineer, cool that you're in the same field 👌

  • @neb2901
    @neb2901 2 місяці тому +1

    This is the best expository essay I have seen made for a youtube video so far.

  • @Vermasium
    @Vermasium 7 місяців тому +1

    i would have never expected "Delightful Kissboy" to be the one to explain a games AI to me. truly an enlightening experience.

  • @marplejones8570
    @marplejones8570 11 місяців тому +9

    Dagoth Ur really knows his stuff.

  • @stevethemastersword
    @stevethemastersword 11 місяців тому +9

    ive never heard a man blessed with a voice this close to patrick warburton

    • @delightfulkissboy8926
      @delightfulkissboy8926  11 місяців тому +7

      😂 So far on this channel, I've gotten a 50/50 split of people saying I sound like Moist Cr1tikal or Patrick Warburton lol

    • @DParkerNunya
      @DParkerNunya 11 місяців тому

      ​@delightfulkissboy8926 I definitely heard Moist first, but the Patrick definitely grew on me the more I listened

  • @MyUsersDark
    @MyUsersDark 2 місяці тому +2

    Me playing Buckshot Roulette: "Man, this dealer is so clever. He keeps predicting what's in the chamber!"
    The dealer in question:

  • @_-_-Sipita-_-_
    @_-_-Sipita-_-_ 11 місяців тому +9

    Didn't expect moist cr1tikal to be talking

  • @Rokk_
    @Rokk_ 8 місяців тому +5

    I'd love to see a new writeup for the updated versions, including the Double Or Nothing mode where the dealer can use the burner phone item to gain information on a random upcoming shell. As well as the general AI changes, like him being able to count the rounds.

  • @clyax113
    @clyax113 11 місяців тому +2

    For the example at 12:00, it helped me when I wrote it out to find that the Self shoot had an expected value of 1/3 to give -1 and a 2/3 to give 0. The second turn, assuming the worst doesn't happen, is always 50/50. This means that shooting yourself on a 1Live 2Blank isn't going to help you get an advantage; it will just be a risky chance to break even. On the flipside, it's bad for the Dealer if you choose to shoot him, with even the worst case scenario having you break even. The step between the shells available and the final expected value made understanding your explanation confusing until I got this.

  • @itr-dev
    @itr-dev 11 місяців тому +12

    Good video, made me want to mod the game and fix the bug + make the dealer smarter ^^ Did a stream of it yesterday, but managed to mess up the calculations a little bit so gotta try again today.

    • @delightfulkissboy8926
      @delightfulkissboy8926  11 місяців тому +8

      That's sick man, will check out the stream after work tonight 👌

    • @itr-dev
      @itr-dev 11 місяців тому +2

      @@delightfulkissboy8926 Uploaded a slightly shorter video of it! Might try to make a bot play the game for me at some point, was a fun mini-challenge.

  • @kinorris1709
    @kinorris1709 8 місяців тому +3

    ManlyBadassHero won his first playthroughwith the Dealer commiting scooter ankle, despite the only possible shell being live.
    The Dealer bumping himself off after smoking 2 cigs and downing 3 beers, each one skipping a blank, with only 1 shell left, Manly went from "oh, this is gonna hurt" to "guess not".
    Then he did something similar in the third video and Manly cracked up.

  • @the_canadian_ninja_nerd
    @the_canadian_ninja_nerd Місяць тому +1

    half listening to this at work makes the whole video sound like Steiner Maths

  • @Fawful0
    @Fawful0 11 місяців тому +5

    Not now mom, I'm listening to Joe Swanson break down the decision tree ai in an indie game

  • @TheKycT
    @TheKycT 2 місяці тому +2

    This dude once just casually shoot 3 blanks at himself in a row without knowing and checking those bullets and then shot me. I was kinda freaked out

  • @craniifer
    @craniifer 11 місяців тому +8

    Good to see someone cover this. The AI isn't terrible, just terrible in certain areas. You can game it, and that makes it more fun if anything.

  • @kyleyuen245
    @kyleyuen245 11 місяців тому +4

    I've always found it interesting that since the dealer knows the last round every time it implies they are counting the rounds, but do a coin flip to give you chance to win. Like with casinos stopping at 17 for black jack

  • @isaacmurray8490
    @isaacmurray8490 11 місяців тому +22

    It’s not designed for best advantage, it’s designed to make sure the player looses. This is to allow the game to be playable.

    • @delightfulkissboy8926
      @delightfulkissboy8926  11 місяців тому +31

      Right, I think the game is actually better with the existing AI, minus maybe a couple unintended behaviors.

    • @alien3200
      @alien3200 2 місяці тому

      Adding realistic AI would make the game not fun

  • @almicc
    @almicc 11 місяців тому +8

    you sound like the guy from The Emperor's New Groove and I like that

    • @wayjae
      @wayjae 7 місяців тому

      i was going through the comments looking for this comment lol

  • @ArchAngelOfficialCh
    @ArchAngelOfficialCh 11 місяців тому +1

    Howdy. Great video, big tip if you ever make a similar kind of Game Theory video, it will help immensely to utilize payoff matrices. That way the viewer can easily read the strategy to payoff values as your talking them out. Instead of just the “Expected value is X”

  • @Randomasiandude303
    @Randomasiandude303 2 місяці тому

    Holy smokes Kronk ! Did not expect you to create a new youtube channel after all those years !

  • @gamingnerd0348
    @gamingnerd0348 9 місяців тому +2

    With the release of the Steam version of the game, playing the Double Or Nothing gamemode, there is something that I've encountered. For 4 shells in a row, without using a single item, he knew exactly what they were. He Managed to "shoot" himself with 3 blanks in a row, and then pointed the shotgun at me and shot me with a live round. The kicker? It wasn't the last round that he shot me with, it was the 5th round out of 7. So, either I'm just stupid unlucky or I encountered a glitch of some sort

    • @anarchistmaverick9507
      @anarchistmaverick9507 9 місяців тому

      With the steam version the dealer almost always know what the last one is

    • @gamingnerd0348
      @gamingnerd0348 9 місяців тому

      @@anarchistmaverick9507 Yeah, that wouldn't be an issue if he didn't rack the shotgun 4 times in a row, ejecting all 4 blank shells from the tube

    • @bruhthatexists
      @bruhthatexists 9 місяців тому

      ​@@gamingnerd0348he knows that last one is live, so he ejects everything else, he's actually crooked now

  • @stringofspades2
    @stringofspades2 3 місяці тому +2

    this is when i can’t wait until online play is possibly a thing. playing this game against other people would make it 10x more fun

  • @sgandrf
    @sgandrf 3 місяці тому +2

    Heads up:
    The AI works slightly differently in DoubleOrNothing mode in the full game. He counts the shells remaining in the gun and aims according to how many shells of each types there are left.

    • @stringofspades2
      @stringofspades2 3 місяці тому

      i was assuming that the double or nothing mode fixed these issues in a way

  • @lit_kzh
    @lit_kzh 5 місяців тому

    rewatching cause i really enjoy your analytical explanations of things like yhis

  • @near5148
    @near5148 2 місяці тому +1

    The dealer: you smoking that shit again man

  • @flyboy_463
    @flyboy_463 Місяць тому

    I love that Kronk from the Emperor's New Groove is playing video games and cracking the code for them.

  • @benwaffleiron
    @benwaffleiron 5 місяців тому

    love the rave music in the background, feels like we're both hanging out in the nightclub below discussing strategy

  • @plasmabasher
    @plasmabasher 2 місяці тому +1

    I always thought from watching youtubers playing Buckshot Roulette that the Dealer had some kind of "Honor" system. The more you shoot yourself, the more likely the dealer will shoot themselves. The more you try to shoot the dealer, the more they try to shoot you back.
    Then I realized, the Dealer really only tries to shoot you if they *know* there's a live round in the chamber. Not once have I ever seen the Dealer shoot a blank at the player.

  • @InGovWeMistrust
    @InGovWeMistrust 10 місяців тому +5

    It would be really interesting for PVP to be added to this.

  • @bobbywesker6114
    @bobbywesker6114 11 місяців тому +2

    Thank you, Brock Sampson for your insightful video!

  • @Paragon13
    @Paragon13 8 місяців тому +2

    The dealer drinking beer to eject a blank shell could be representing addiction. Kind of like how he’ll still use cigarettes after the defibrillator wires have been cut.

  • @KellRunnrTTV
    @KellRunnrTTV 10 місяців тому +1

    “You can’t make reasonable predictions” *laughs in markiplier*

  • @pretzels1208
    @pretzels1208 11 місяців тому

    i don't even know what buckshot roulette is and I watched the whole video. I found it very entertaining.

  • @dropdmike75
    @dropdmike75 3 місяці тому +1

    "who gives a fuck about this shit unless it helps you win more?" Hits hard and I don't know why

  • @LoneWanderR
    @LoneWanderR 11 місяців тому +8

    Dealer just likes to booze it up and have a smoke! He doesnt have to worry about getting less than 70k at the end, so its all free to him.

  • @daansey4799
    @daansey4799 11 місяців тому +2

    It would be cool to watch you play a round of the game with this in mind and show how this info could be utilized!

  • @Weldedhodag
    @Weldedhodag 11 місяців тому +3

    dude made a damn powerpoint presentation

  • @545coolkid
    @545coolkid 11 місяців тому +6

    Great video! Thanks for the information saw your post on reddit. You earned a subscription.
    I noticed in your high score video you said that the cigarettes lose you points, do you think you could make a video going in depth about what makes you losing points and what makes you gain points?
    I think that would make for a great video!

    • @delightfulkissboy8926
      @delightfulkissboy8926  11 місяців тому +2

      Good idea! Might have to do that, was gonna take a crack at decompiling the game this weekend and I'm curious as well

  • @theorangeoof926
    @theorangeoof926 11 місяців тому +17

    19:33 The Dealer is a confirmed alcoholic hahaha

  • @Daniscool97
    @Daniscool97 10 місяців тому +3

    I made Russian roulette ai before. I thought I was giving it too much knowledge when it know how many real shells are left

  • @floofzykitty5072
    @floofzykitty5072 Місяць тому +2

    11:35 This is very similar to the Monty Hall Problem.

  • @GarrettRatliff96
    @GarrettRatliff96 11 місяців тому +6

    Here 20 minutes after you posted. New sub

  • @alexmaximus9134
    @alexmaximus9134 11 місяців тому +1

    I think that they should allow the dealer to count the shells as well, like players do. It'd make him do more informed decisions. And the chances will always be in the player's favour because the player always has the first turn. But giving him the ability to count and perhaps to use items more optimally would even the playing field more between player and dealer. Because, if you play optimally, unless RNG screws you over, you will win almost every time. It would make the game more intense.

  • @dawnnightinger3025
    @dawnnightinger3025 11 місяців тому +1

    There is a proper order to use the items. Starting cigs. If you have less than max health, use one. Next with the beer. Use in only two scenarios. If there is only one live round left regardless of number of blanks, or if all remaining rounds are live unless it's the last bullet or handcuffs are in play. Then comes the magnifying glass. Now comes the handcuffs, if the current round is live and the next is unknown or live, use them. Finally, comes the saw. If the current round is known to be live, use it. Now, if it's live, fire at the dealer, if a blank, fire at self, and if unknown, fire at the dealer.

  • @gethk.gelior4214
    @gethk.gelior4214 11 місяців тому +14

    I remember two weeks ago people were specifically calling this dealer AI "smart", and now that the behavior is cracked it instantly becomes dumb. How funny things turn out in very short periods of time.

  • @Vin_sanji
    @Vin_sanji 11 місяців тому +4

    Thank you good sir for telling me the CRUCIAL info about the adorable dealer form buckshot roulette. 🤓👆

  • @HeDoMo3r
    @HeDoMo3r 11 місяців тому +17

    I once saw him using the magnifying glass and shooting himself... With a live round.

    • @NoppyOwO
      @NoppyOwO 11 місяців тому +7

      he was simply asserting dominance

  • @adronnmusic
    @adronnmusic 11 місяців тому +1

    Thank you for this interesting breakdown Mr. Warburton!

  • @katiekirks1253
    @katiekirks1253 7 місяців тому +1

    I beat the game first try, but I want to learn how the dealer works. I really like learning how things work.

  • @SomeoneElseInTheComments
    @SomeoneElseInTheComments 11 місяців тому +4

    "Who gives a fuck about how this shit works unless it lets you win more?"
    Me, not owning the game and enjoying the math and programming: ....

  • @dustinzacharias8227
    @dustinzacharias8227 5 місяців тому +1

    18:42 No, worst case scenario is when he also has an inverter because no matter what you do he is going to take 2 damage off you

  • @ValentineC137
    @ValentineC137 Місяць тому +1

    The coinflip is pretty smart, it's always a 50/50
    It's either a live or it isn't

  • @nicolaasvanvliet-hg3iu
    @nicolaasvanvliet-hg3iu 7 місяців тому +1

    As someone who doesn’t play buckshot I will use this information in real life.

  • @Water-rg7gp
    @Water-rg7gp 11 місяців тому +154

    i played 13 games, dealer has never shot himself, his luck is ungodly.

    • @ColtonPrice095
      @ColtonPrice095 11 місяців тому +41

      what killing god does to a mf

    • @Water-rg7gp
      @Water-rg7gp 11 місяців тому +30

      17 games and hes still played perfectly every game

    • @vlc-cosplayer
      @vlc-cosplayer 11 місяців тому

      @@Water-rg7gp bro got the Skynet mod 💀

    • @DonickPL
      @DonickPL 11 місяців тому +7

      u mean he never shot himself with a alive round?

    • @Water-rg7gp
      @Water-rg7gp 11 місяців тому +1

      @@DonickPL correcting me literally does nothing

  • @AstralKat
    @AstralKat 11 місяців тому +3

    I saw him use a magnifying glass and then immediately pop a can of beer to eject a live shell lmao, so that random order rule REALLY screws him over big time

  • @CrypticCobra
    @CrypticCobra 11 місяців тому +7

    I have seen him use a magnifier, saw the shotgun, beer out a live round, point it at himself and get hit by a live round. Clearly it must have been a bug because it made no damn sense.

  • @cyphersam9436
    @cyphersam9436 11 місяців тому +1

    From what I understand, what makes him exploitable is how he does coin flips for every turn outside of magnifying glasses or the last shell, meaning he has no concept of what the odds are. So for example, let's say you know that there are 4 lives and 4 blanks. 2 blanks were used, there are now 4 lives and 2 blanks. It is highly likely that the next shot is a live one. But the Dealer still sees this as a 50/50 coin flip in his case, so despite it being of higher value to take the chance to shoot you, there's still a chance he'll waste a life of his own anyways. So if you want to win, just keep playing into the odds. Even if the odds weren't in your favor in this scenario and you took a hit, he still is more likely to shoot himself when there are still more lives than blanks.

  • @piynkone
    @piynkone 11 місяців тому

    i don't even own buckshot roulette, this was just really entertaining

  • @noedig101
    @noedig101 9 місяців тому +1

    the patch notes on steam said that double or nothing mode has a better dealer ai.

  • @chrispysaid
    @chrispysaid 11 місяців тому +2

    I have no idea what game this is and hearing your description under this context is a wild ride

  • @quispe1928
    @quispe1928 Місяць тому +1

    I love this videos of how ai works

  • @sirdurtle9519
    @sirdurtle9519 16 днів тому +1

    The muffled music implies that were discussing strategy in the bathroom

  • @shayes.x
    @shayes.x 11 місяців тому +8

    You seem like the kind of guy who would like Phasmophobia. Learning the different AI behaviors is key in that game

    • @delightfulkissboy8926
      @delightfulkissboy8926  11 місяців тому +13

      Been meaning to check that game out! Some of my friends were into it for a while, but I missed the bandwagon. Maybe I should check it out anyway