Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

ADSP: Algorithms + Data Structures = Programs

ADSP: Algorithms + Data Structures = Programs artwork

Episode 209: Scrabble, Cribbage & More! (Board Games Part 2)

Nov 22, 202435 minAudio

In this episode, Conor and Ben chat about their favorite board games (again). Link to Episode 209 on Website Discuss this episode, leave a comment, or ask a question (on GitHub) Twitter ADSP: The Podcast Conor Hoekstra Ben Deane Show Notes Date Recorded: 2024-11-12 Date Released: 2024-11-22 Paleovet Wingspan Jaipur Snake & Ladders Trouble Scrabble Monopoly Super Puzzle Fighter II Turbo The Stunning Rise of Scrabble's Strongest Nation Quackle Cribbage Elixir Language QBasic Yahtzee Intro Song Info Miss You by Sarah Jansen https://soundcloud.com/sarahjansenmusic Creative Commons - Attribution 3.0 Unported - CC BY 3.0 Free Download / Stream: http://bit.ly/l-miss-you Music promoted by Audio Library https://youtu.be/iYYxnasvfx8

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show. Tap a time to play from there.

ConorTried to figure out, you know, for loops, if statements and stuff, and then I was like, wait a second, like with these like couple tools, you could do you could do anything. And then like the next two to three days like disappeared, and I wrote this like three thousand line poker simulation.

BenKribbitch scoring is very interesting algorithmically. It's it's one of those things that I periodically go back to as sort of a coding practice, a coding exercise.

ConorWelcome to ADSP the podcast, episode 209, recorded on November 12th, 2024. My name is Connor, and today with my co-host Ben, we chat about board games. Once again, we talk about Scrabble, Cribbage, the games we programmed when getting into programming and more. Let's put a bow on the board games, and we'll just call this board games. Other because you only mentioned one.

BenOther top favorites of yours? Oh, let's see. What have I played? Oh, I really liked uh Paleo Vet. Paleo? Paleo Vet was a game I played with some friends lately. Yes, you are a veterinarian and you are taking care of dinosaurs. And every turn there are five dinosaurs in the middle of the table available to uh tranquilize and bring back to your veterinary practice. And uh and once they're in your practice, you are healing them.

BenEach dinosaur has some icons on its card to say what it requires to be healed. Maybe an antiviral, maybe uh an antibiotic, maybe surgery, something of that nature, right? There are different things you can do. And you roll dice, and they're not they're not numbered dice, they're dice with icons on them every turn to figure out what you can do that turn. You know, the dice have icons corresponding to the treatment icons. And the goal is, of course, to bring dinosaurs into your practice and heal them and then release them.

BenThe wrinkle is that um dinosaurs aren't very friendly, and um you while they're in your practice, basically they are they are tranquilized, they're asleep while you're healing them, but their sleep counter is ticking down every turn. Um when they wake up, they break out and run away. If they are carnivores, first of all, they eat another dinosaur and then they run away. So uh. But then so so far this sounds like why all bad, right?

BenBut but then you start to layer on the things like um extra points for achieving uh certain sets of dinosaurs, like you can specialize in healing carnivores, and that gives you like extra powers and extra points, perhaps, or you know, things things of that nature. And and the dinosaurs, and here I'm aware I'm using dinosaur in a loose term. So think any large uh well, not necessarily large, but basically anything in the sort of uh reptile family from 65 plus million years ago counts as a dinosaur in this case.

BenSo, you know, we could argue about pterosaurs and ichthyosaurs and things like that. But but these are fair it includes all your classic dinosaurs. And it's just uh a lot of fun. Uh it seems like a it seemed like another good game where it's a good blend of strategy and luck and choice over which path to take. Is this a newer game?

ConorI guess I've never heard of it.

BenYeah, I found it at my local board game store. I had not heard of it, I haven't really seen it reviewed anywhere online. I picked it up because I thought it was a good, thematically good, and it turned out to be a really fun game. Yeah. So yeah, it's called Paleo Vet.

ConorInteresting. Any other last minute pitches? I'll in terms of themes. I think I mentioned the word wingspan is uh my partner and I our favorite game. Although we haven't played it recently, it's they call it a bit of a point salad game uh because there's a lot going on. It's definitely not one of those two minutes to explain. It takes a couple rounds to to get under it. But as uh avid birders, we and it we'll go away on a trip and we'll come back and then we'll be like, oh yeah, now we've seen that bird. Um, you know. Nice. Which is uh what it was definitely when we were in Scandinavia, though, we saw a couple birds and then we came back and we were like, oh, even though we don't like that card.

BenHerons and and things like that. Yeah. For a two-player game, uh Jaipur is a good one.

ConorI think you t you told me about this game at one point. Uh is it is it the card-based one?

BenIt is yes. It's uh it's uh Middle Eastern Marketplace is the theme of the game. And you are buying various goods and and it's only a two-player game, but it is a very good two-player game. One of the mechanics now I've got to remember is um you you you basically get more points for being the first to buy certain goods. So, you know, there's I forget the goods, but there's like spices and leather and maybe some other things. Um But basically, if you're the first to buy a good, you get the sort of four-point token, and then the next person to buy can only get the three-point token.

BenSo there's a there's a sort of mechanic like that. I'm not sure I'm getting it exactly right, but it's like that. And then there are and then there are camels. You can choose and whenever I play with my son, he can't resist. Whenever there's camels on office, like because basically you can choose to like corner the market in camels and take all of the camels instead of buying something. You know, and the camels might build up over a few turns until it becomes very attractive, because of course you get points for having the largest camel herd. Yeah, learning about supply and demand and uh so that's a fun one.

BenUm anything to avoid, you know, it once you have kids, board games become a different uh a different sort of thing, and mostly because you want to avoid you know, when you're starting out teaching your kids, um the games are really simple like uh Candyland, right? Candyland doesn't even it doesn't even involve uh a dice, I think. Uh it's you move by colours, you move by yeah, you turn over cards and the colour on the card is the is the next colour space you move to on the on the twisting path.

BenThat's okay. Candle is not a bad game, you know, at least uh in terms of little kids' games. But Snakes and Ladders or Shoots and Ladders, uh we call it Snakes and Ladders in the UK, is one of the worst games ever invented. It's up there with Monopoly as one of the worst games. Uh for two reasons. One, the I mean the heavily moralistic background is not good, but but as a race game, Snakes and Ladders requires a exact count to finish, and you know, you can play it for five minutes and be nearly finished, and you can still be nearly finished 20 minutes later.

ConorRight.

BenIt is that kind of game. It is just painful. And in the end, you're just because it's random every time, and you must get in by exact count. In a way, it's worse than Monopoly. At least with Monopoly, at a certain point you can just decide to play to lose. You just be like, sure, I'll trade you so you have the whole set of these things because you know we've been playing for an hour and I just want the game to end. Right.

ConorShould I ask what the moral I don't even know what the moral uh problematic background is.

BenOh, I forget, but it basically you know the game, right? Snakes and leathers. So the idea is that, you know, good God-fearing, I guess, children advance, and children who do things which are questionable in the eyes of whatever um morality was around in 1800s when it was invented? I don't know. Um they do not advance. It's it's it's it's that sort of game.

ConorI didn't I didn't realize there was any uh Yeah, so if if you I never really play those games, uh, but you probably have you heard of the game Trouble?

BenYes. Yeah, that's another exact count.

ConorYeah, yeah. Like I think so. My mother absolutely loves that game. Is that the poppermatic one? Exactly, yeah. That's the one with the popper, yeah. I think it's actually got an alternative name, and it might be like something like that. You know, you pop something where you pop the dice and you've got four people you need to get from home to go around the board once and then in. And I think the only decision you can make, or there's two decisions. One is if you have multiple pieces out, which one is to play, yeah. Which is not nothing.

ConorAnd then the other one It's really the only thing that could be called strategy. But I think if you get a six, you can that's the other option. You can bring someone out. You must get a six to start. Yeah, six six you can bring someone out, or if you have a person out, you cannot take someone out and and move six. But anyways, uh almost completely luck. And I would go, uh I would pull my hair out so much just being like, and and uh anyway, so yes, I f I feel your frustration.

ConorI because that game is just I would always when I I remember being a kid, I was I would like act out and try and like make it fun because I was like, this game is boring as hell, so like the only thing that's gonna make this fun is if like someone starts pretending like this is the most important thing, being like, no, my person went back home. Uh whereas a game like Scrabble is actually you know very fun.

BenUm well Monopoly Monopoly is a bad game, right? Um because it's it's what I've heard called among other things, it's it's you know, also besides the fact that it it glorifies extreme capitalism rent sinking property. Rent sinking, yes. It's a 51% game, right? Which is how I've heard it called. It's like like once you get slightly ahead, it is there's a positive feedback loop, right?

BenSo once you get the idea uh the the idea behind a 51% game is called if one person's 51%, then then they run away with the win. Um which isn't you know, Monopoly has random elements, so not totally true of Monopoly, but it's basically true. It's kind of fascinating, actually. I think I saw online. So I obviously have a hack uh background in video games, as you know. A lot of video games fight against that kind of 51% game, and there's a kind of game which is um exemplified by one of the first games I know uh is um Super Puzzle Fighter 2 TurboXtreme, was it?

BenAnyway, it's one of these games where imagine competitive Tetris, right? But not Tetris, it's the one where you you are you're not fitting the blocks in, you're you're just letting the blocks fall on top of each other in different colours, and when different color blocks meet, they merge into larger colour blocks, and then you can explode those larger colour blocks and send things over to your to your opponent to deal with.

ConorOkay.

BenOkay. So it's it's like POP or a game of that nature, right? It's one of these games, and it's head-to-head, two players. Um it has the very interesting property that being about to win looks the same as being about to lose. It's it's a it's not a 51% game, it's a it's a sort of continual comeback game. Because if I send you a lot of material, yes, it fills up your side of the screen, so it's a problem for you to deal with, but it gives you a huge opportunity to send a bunch of stuff back to me.

BenRight? So it works both ways.

ConorInteresting. So it's like, is it is it not a is that does that involve like bluffing kind of of or is that a lot of it?

BenWell, it's it's a it's an arcade game, right? So so you're things are continually dropping. Sometimes you're getting fuses which set off different color blocks, right? And the larger so you might uh if a two by say say you get a two by two of reds, they fuse together into a larger gem in this game, right? Uh say you get a uh uh two by three, it would fuse into an even larger gem, or three by three, even larger, right? And the larger the gem gets, the sort of geometrically more powerful it gets, right?

BenSo you send over more stuff for large gems comparatively. But every character uh this game, this this game I'm thinking of had a had a sort of Street Fighter character selection. So every character you can select in Street Fighter to be your combatant had a different pattern of colours they would send over to your opponent when you got, you know, a certain explosion of gems. You would send over a dozen gems, the pattern they get sent that gets sent depends on which character you picked. Interesting.

ConorSo what's the risk at the at the end of sending, you know, you're close to sending something over, like, but the risk is that they'll be able to do something with that?

BenYeah, exactly. You've just sent a bunch of gems, they are gonna fall on whatever gems your opponent already has, they're gonna fuse together into larger gems potentially, and then your opponent will be able to set those off and send a ton of stuff back to you. So this is why it's not it's not one of these games where when you get ahead, you stay ahead. It is a very interesting mechanic of perpetual comeback.

ConorYeah. That is uh I'm trying to think of other I mean Scrabble is not completely dissimilar to that. It definitely doesn't have like a oh you're about to win, you could be about to lose. But there it affects the strategy that you play in in high-level Scrabble. When you're down by over a hundred, over like a bingo or more, you start to You start to play a denial game rather than a scoring game. There's defensive versus offensive, and offensive, you open lanes.

ConorSo it's you'll any high-level Scrabble player is always looking at where are the bingo lanes where I can score. And if there's only one and you're trying to play defensively because you're up by 150, you're just always one at a time closing that lane so that there's nowhere to score, and then the next turn the player will try to open another lane that that person can't close. And the best kind of play is is where you fork, where you open two lanes at once, which is unblocked because if you don't have high-scoring lanes, there's no way for you to come back.

ConorSo there's kind of things like that where and even certain countries are known for the way that they train. Uh like I just watched a video on how Nigeria has become a Scrabble superpower because they have this one this one guy that won the world championship in I think 2016. His name was Wellington, and it's uh designated in Nigeria uh that Scrabble's a sport the same way chess is. And so they have funding for training, and now like it's in the top 100.

ConorThere's like 40 Nigerian um like globally ranked Scrabble players, and uh there's like two in the top ten, anyways, and they are all known for uh actually I I think they said it's a myth, but the myth is that they play very defensively, but actually the top players they're they're just as aggressive as some of the other players.

BenThis is interesting. You know, I I know that you've played Scrabble somewhat competitively. Uh I've I've played one tournament. Uh you have a deeper than average understanding of Scrabble. Like, I haven't played much. I've played Scrabble, I know how Scrabble works, like, but I haven't played it anything beyond, you know, with the family. Um and and that not very much. And so, you know, I think like most people, I'm vaguely aware that in competitive Scrabble, like you need to know all the two-letter words and and probably all the three-letter words.

ConorAnd four, and five, and six, and seven. Whether you know the eights and nines is the question.

BenUh but then there's this whole other strategy of actually play space, controlling the space of play. Yeah. Right. Which which is not something that is obvious. You know, uh most people I think would find it fairly obvious that um knowing all the two and three letter words would be a advantage at the end of the game in particular. Um but the actual strategy of play of, like you say, closing lanes or opening lanes or various things, and indeed the strategy over time of uh managing your letter bank, right?

BenTo to mean that you're not looking for you're always looking for bingos, I assume, but you're you're not necessarily looking for them on this play. You might be set trying to set up, trying to, you know, trying to go down the highest probability path to set up a bingo next turn or turn after, or hopefully, you know, ideally every turn, but um the top-level play is look is thinking about things like that, right?

ConorYeah, it's honestly uh even as a I would say above average like serious Scrabble player, there was a whole other world of strategy that I did not know existed until until I started watching these Will Anderson videos and and commentators commenting on uh Scrabble tournaments that are now live streamed that weren't, you know, in in years past. And the things that people do are it's incredible. Like so that one of the big things I didn't know about was endgame. Every every professional or uh elite Scrabble player tile tracks, so you know exactly at the end of the game when there's no more tiles in the bag.

BenYou know exactly what you have and what they have, yes. And depending on the board. Is that something that is purely mental? Are there rules? Are they allowed to write now?

ConorYeah, yeah, that you can write down whatever you want. So they all of all players have like a little thing where they just scratch off the letters one by one and and you both keep your own scores as well as some third party that's just kind of scrabble rules. And so you can play out at the end of the game, you know, you know what your opponent has, you know what they can spell, and so the obvious play for you at like a simple level is like, oh, I can score this many points, it's my best word, could set them up to win the game in like a uh some remarkable fashion. So you have to play out, and depending on how many minutes you have left on your clock, because it's a timed game like chess as well, you'll see someone sit there for seven minutes finding the one path to like victory, which involves three different plays and like setting themselves up and so this is like this is like endgames in chess, exactly except that Yes.

BenSo chess, I believe, is solved for any configuration of seven or eight pieces left on the board. Computers have solved it all because something like that, yeah. But but Scrabble is more amenable to humans finding these paths, I guess, because it's uh Because there are a finite number of words in the dictionary, in particular the two and three letter words that happen at the end.

ConorSo yeah, I know that um Quackle is a program that can solve endgames perfectly up to a certain amount as well, even though there's I think a hundred and thirty-five thousand words in the Scrabble dictionary, depending on the dictionary you use, there's a Collins one and a North America one, anyways. Right. But yeah, it it is solvable, but it is it's a lot harder to do. Like the best players in the world can do it. But there there are some things that's incredibly hard to see.

ConorAnd another really, really cool trick, like Jackson Smiley is a Canadian top world-ranked player that actually was on Jimmy Kimmel years ago at on that little kid contest where they bring on the two young Scrabble players. He was, you know, when he was a kid, went on that program. Now I think he's roughly m my age, um, plus or minus, and he still plays now, but he is crazy for his setups that he will do where they they know, oh, I have the only M left, and I can hook this word with an M at the end, so I will put it here, it'll be unblockable, and then I'll wait.

ConorAnd and so it looks like he's just kind of playing a whatever, you know, other elite players will recognize this and try to block, but it they try to set up these situations where they've they're they're putting something, they're basically laying themselves up or like for an alley oop that is unblockable because they have the only tile left in the bag uh because they've been tracking. And every once in a while you'll see something like I've I've seen before where someone played EAU, which is uh the French word for water, but it's in the Scrabble dictionary, and they put that next to a triple uh letter, and EAU X is also a word, and they had the X on their rack, so they were setting themselves up 30 points or what?

BenNo, X is eight, right?

ConorAnd EAU is X one each. Times three, but then they played uh another word that ended in X, so they spelt O that ended in X plus something like tax, so you end up getting 48 points for that one letter. Wow. And uh because it's triple in both of the words.

BenYes, X was on the triple. Okay, yeah.

ConorAnd then and then it can look like I mean elite players, they'll uh they automatically always recognize these things where oh, they might be setting up a ZA uh dual direction triple play where you get 40 or uh 60 for uh six times ten for Z or Z. Uh for I don't actually know which one's American, but I know the uh Americans say uh anyways, Z. Z. Americans say Z, yeah. Z. Um but like elite players will see this immediately. Um but if you're if I'm just playing casually, like no one's gonna notice that I dropped an A next to a triple and that I might have the Z on my rack.

ConorAnd uh but they'll s they'll see this immediately, and you know, anyways, it's it's a it's a very simple game in terms of like, oh, you just it's a crossword game. Speaking of which, we'll transition now an hour later. We've got two board game episodes now.

BenWe're gonna have to split this into two parts because uh well I just wanted to to hook in also on the on the sort of algorithmic side of things. Well, we'll save the books, maybe. But um I was gonna say um Aver and I, when we were dating, used to play Cribbage a bunch, which is uh a great game for two players.

ConorCribbage and there's another game that I get mixed up. Is this the one with the 29 and the pegs on the board?

BenOr cribbage has yes, that's right. Um so twenty yes, that's right. So it it there's a a cribbage board, has the pegs. You play to 121, and 29 is the highest scoring hand.

ConorMm-hmm.

BenOkay, yeah.

ConorThat's so and you find some cribbage boards that look like a 29.

BenThat's right. That commonly you find a 29 shape. Cribbage scoring is very interesting algorithmically. It's it's one of those things that I periodically go back to as sort of a coding practice, a coding exercise, is scoring a cribbage hand because it's like I say, it's algorithmically interesting. To begin with, um there is a there is uh an order in which you count up a cribbage hand. So you're looking for, to begin with, uh cards that sum to 15. Right. And you you your hand is four cards, your hand is four cards, and there's an extra starter card, which you get to include in counting.

BenUm there are various rules. So you to start with, you're looking for cards that sum to 15. Ace is always one, never eleven. So ace is always low in cribbage. So you're looking for fifteens, you're looking for pairs, you're looking for runs of three or more. Runs, yeah, I remember that. And and that what and what and then you're looking for there's a score called uh one uh it's called knobs, or I say one for his knob, because that's the way I was taught, which is if if you're holding a jack, which is the same suit as the starter card that got turned up, it scores one point.

BenYou can also, I think, score for a flush, although that's rarer. But what makes Kribbitch interesting to score is all of those things, but also the fact that it's combinatoric. So um the highest scoring hand is uh you're holding a jack and three fives, and the turn-up card is a five of the same suit as your jack, right? That's that hand scores twenty-nine, and the way it scores twenty-nine is by counting fifteens combinatorically. So you've got 15, 2, 15, 4, 15, 6, 15, 8.

BenThat's the jack paired with each of the fives. Right. There's eight points. Then you've got the four fives, how many ways are there to select three from four? Because three fives are fifteen, right? So it's so fifteen four. Yeah, exactly. Um so you've got however many there are there, then you've got all of the combinatorial pairs of fives. Again, you've got four fives. How many ways can you select a pair of fives? You score two points for everyone. Right? This is what I mean. It's combinatorial.

BenAnd then finally, the one for knobs makes the score up to 29. That's the extra one point.

ConorYeah, that is algorithmically interesting, but also it would be very not monotonous. But I'm trying to think of like the elegant way, and it's like, eh, it's there's probably gonna be no array single liner. It's gonna be a bunch of the elegant way to do it might be recursion.

BenYeah. That's the way I normally do it.

ConorYeah, at first, until it was the the example, I was thinking of like the 7-8, 6, 7, 8, 9 hand, which usually was what I was shooting for.

BenBecause that is all that's also a decent hand that has the a very good hand that's like especially if you have say um six, seven, seven, eight, and you get a nine turned up, right? As soon as you get a double seven in there or a double eight, then the combinatorics start to come into play because you've got fifteen-two with seven and eight, fifteen, four with the other seven and eight, fifteen, six with the six and nine, then you've got the runs, and again you're counting the runs combinatorically.

BenSo six, seven, eight, nine is one run, and then six other seven, eight, nine is the other run, and you've got the pair of sevens as well. So you've got a lot of different scoring in there. Once you start doubling up, you know, because the seven is doubled as part of a fifteen and also doubled as part of a run. It's it's multiplying up.

ConorI'm actually trying to think though, is the could you solve it by doing a is it permutations? Per no, so no, it's it's not permutations, it's power set. Permutations- so combinations is order doesn't matter, permutations, order matters. Power set is all the lengths up to uh n. So the question is is if you took the power set I think it's and it might actually need to be the permutations of each actually, no, I don't think permutations matters because the the order of the cards definitely doesn't matter.

ConorYou just can keep them in sorted order to check for runs. If you took the power set of the four cards you had, which for four is not gonna explode that big, right?

BenCould you solve it for five. The fifth card can be included if needed. That's one of the things that puts a wrinkle in it. Like, for example, you can have a flush if all the cards in your hand are the same suit, and that scores four points. If the card that gets turned up is also that same suit, you can score five points. Right? Likewise the card that gets turned up may or may not be included in a run, depending on whether if you have a run of three in your hand, that's sufficient, but if you can make a run of four, you can do that too, for example.

ConorOh, but you won't get points for a run of three if there's the run of four as well. Correct. Okay, so that that breaks that breaks my power set model that I was trying to think if like if you could just create every combination of like length two, three, and four from your four, can you map the points uniquely to each one of those and then just sum it up?

BenOh, that's right. Yeah, the run length does not apply combinatorically. The content of the run would. You're swapping out cards or whatever. Yeah, it's a it's a very interesting problem to code up. Um and it's interesting also, just so there's now rhythmically interesting part, and then there's a sort of code design part, which is how you represent the cards, how you represent the hands, how you represent the deck and dealing the hands, which applies in generally to card games, I think.

ConorOh, so that's if you that's if you're implementing the whole game, is what you're talking about there.

BenYeah, yeah. Is the Queen of Spades a value or a reference type? Oh yeah, yeah. Tony's famous question.

ConorLink to Tony's uh one of Tony's talks. Uh I like the way in array programming it's a pretty classic trick. You just assign one to fifty-two or zero to fifty-one if you wanted, uh, depending on your array language. I think zero to fifty-one works a little bit nicer though, because you can then do immediately mod uh 13. So you do mod 13 to get suits. And you because you have I'm sure you could do this in other languages, but it's it's really easy to do in array languages. You can do this uh index selection where you create a string of the Unicode uh diamonds, heart, spades, and uh clubs, and then you can just mod 13, you can go integer division and then index into.

ConorSo like if if you have 16, which will be, I don't know, like the seven of hearts or something, uh, or actually no, it's gonna be lower than that, the three of hearts or something, and then you integer integer divide that by 13, you'll get one, and then you can index into your length four string of those Unicode symbols. And so like in a few characters by using just zero to fifty-one, I mean this breaks the whole using uh you know value versus etc. that Tony talks about. Uh but it's a super fast way to get like a card game going and to you know display things in a terminal that look quite nice.

BenYeah, it's cool. I mean, you also need to deal with like court cards all counting 10 as far as the 15s, that's another, you know, the the the value of the card is not the value of the card. It uh for the for the pip cards it is, but for the picture cards it's they're all ten, right? Yes. So when you're counting fifteens, you need to take care of that kind of thing. So there are enough there are enough sort of special case rules like that to make it interesting. It's not terribly complex, but it is more complex than simply power setting the cards, right?

ConorYeah. Maybe we should have have a whole other episode on because I remember one of the very first things that I did when I fell in love with programming, because I had I was doing studying actuarial stuff in school. I had to take two programming courses, and I was actually struggling in the very first one I took. Uh it was a Python course, just intro to CS. And I was never the best student. I kind of skated through high school, and so uh, you know, if if things weren't immediately obvious to me, I I was just like, ah, this isn't for me. And finally, at some point, at like halfway through the course, there was this assignment, and I was like, this can't be that hard.

ConorAnd so I actually sat down, tried to figure out, you know, for loops, if statements, and stuff, and then I was like, wait a second, like I did the assignment, and I was like, with these like couple tools, you could do you could do anything. And then like the next two to three days like disappeared, and I wrote this like 3,000 line poker simulation because at the time I was a big fan of uh poker, not gambling because I I couldn't gamble yet, I was too young. That's a whole different story. I don't gamble anymore. Probability. Yeah, yeah.

ConorAnd uh hence you went into actuarial sense. Yeah, statistics, money. I mean, there's there's a whole book written about you know the overlap between Wall Street and uh and poker and whatnot. Anyways, and uh that that program that I wrote though was identifying the different hands, and all of it was nested for loops. I wish I could go find the code. It's on some hard drive somewhere, um, but it was horrific. But it it worked for the most part. And now I have like in in Smalltalk and BQ in a couple languages, these one-liners using like specific frequency uh methods or collections that make it so much faster, so much more beautiful.

ConorIt's it would be interesting to go back and refactor in a sense. I think a lot of students too. I remember helping uh someone that was doing a kind of poker assignment once, and they were blown away when I was they were doing an Elixir, and I was like, Oh yeah, Elixir has all this stuff, you know, chunk buy, etc. And they were like, What the heck? I was just gonna loop through this stuff, and I was like, Yeah, that's exactly how I would have thought when I was first learning it.

BenYeah. I have a similar story. One of the earliest things I wrote when I was a teenager in Qui in Q Basic, Quick Basic, actually. Jason would say there's a difference between those was Yahtzee. I wrote a Yahtzee program that I spent a whole summer playing with my brother and sister. We would play together and uh, you know, it it was the whole game, so it rolled the dice and and then you could choose where to put the score and hold and all that, you know, the play of Yahtzee. I see, I see you have Yahtzee behind you there.

BenI love Yahtzee is my favorite party game. It's another game where there is a hidden strategy, right? I think that's beyond the the the surface meaning of the game, if you like. Um because you know, as a kid learning strain learning Yahtzee, I didn't fully understand that one of the strategies is like you know, you you roll the die, you roll the dice, and you get a certain score, right? You get a certain number, you get a certain outcome.

BenAnd then you can choose where to score those dice, right? And you don't have to score them in places where they obviously score, or places that you were going for, right? If they come out bad, you could choose to take a zero in the ones, for example, right? Because the most you can ever get in the ones is is five. Or five, yeah. Uh with the bonus Yahtzee, uh admittedly, but four, let's say. The most you're likely to get in the ones is four.

BenUm so I had not appreciated that whole level of strategy when I first started playing Yahtzee at the age of eight or whatever. Yeah, yeah.

ConorYacht Yahtzee is uh a game that is mostly luck. I don't know if it's 90-10 luck and skill, but I love I love Yahtzee. Not I mean typically it's like a New Year's Eve uh party game where there's lots of people. And uh I also too, like I my strategy is like I throw full houses. I don't care if it's my second, I'm always going for Yahtzee. It's like I want the 500-point game. I think I scored 450 one time, but that admittedly is like every opportunity I have to get a Yahtzee, I'm I'm gonna take it because even if there's a one in 216, whatever uh six to the power of three is, like, I still have a shot, and it's worth the 100 points bonus to me to like end up with 170, which is not a great score, to like you know, end up with a game once every 20 games that's like you know, 400 plus, which is like three or four Yahtzeis.

ConorUh, because like that's it's it's worth it to suffer through 19 games to have this one glorious moment, which is also the same way that I I race races, is I always go out too hard and it usually doesn't go well, but then one day it's a great day.

BenUm Yeah, one day when everything lines up, you go out hard and you find you're able to continue and you run a negative split. See, I know some I know some running terminology.

ConorBe sure to check these show notes either in your podcast app or at adspthepodcast.com for links to anything we mentioned in today's episode, as well as a link to a GitHub discussion where you can leave thoughts, comments, and questions. Thanks for listening. We hope you enjoyed and have a great day. I am the anti brace. Um

Open the transcript file

Hosts and Guests

Guests

  • Ben Deane Guest Inferred

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Episode 313: C++26 Reflection vs CRTP, AI, Kids & More with Zach Laine

    Nov 20, 202647 minAudio

    In this episode, Conor and Bryce chat with Zach Laine about C++26 Reflection vs CRTP, AI, kids & more. Link to Episode 313 on Website Discuss this episode, leave a comment, or ask a question (on GitHub) Socials ADSP:...

    • Apple Podcasts

    Credit the people on this episode

  2. Episode 312: The C++26 Contracts Fiasco

    Nov 13, 202652 minAudio

    In this episode, Conor and Bryce chat with Zach Laine about the C++26 contracts fiasco. Link to Episode 312 on Website Discuss this episode, leave a comment, or ask a question (on GitHub) Socials ADSP: The Podcast:...

    • Apple Podcasts

    Credit the people on this episode

  3. Episode 311: Career Changes, GPUs & More with Zach Laine

    Nov 6, 202628 minAudio

    In this episode, Conor and Bryce talk with Zach Laine about his career and the career changes he has made. Link to Episode 311 on Website Discuss this episode, leave a comment, or ask a question (on GitHub) Socials...

    • Apple Podcasts

    Credit the people on this episode

  4. Episode 310: Leaving NVIDIA for... ?

    Oct 30, 202624 minAudio

    In this episode, Conor and Bryce talk about Bryce's next chapter and where he is leaving NVIDIA for. Link to Episode 310 on Website Discuss this episode, leave a comment, or ask a question (on GitHub) Socials ADSP: The...

    • Apple Podcasts

    Credit the people on this episode

  5. Episode 309: Default Construction & CppCon 2026 with Jason Turner

    Oct 23, 202629 minAudio

    In this episode, Conor and Ben chat with Jason Turner about default construction in C++. Link to Episode 309 on Website Discuss this episode, leave a comment, or ask a question (on GitHub) Socials ADSP: The Podcast:...

    • Apple Podcasts

    Credit the people on this episode