Hey there, stranger! Fancy a game of cards? Luck's on your side today, I can feel it.
Step right up, test your wit! These cards could be your ticket to fortune.
Trust me, I've got a good eye for winners, and you've got the look of luck about you.
Plus, I'd wager you've never played this game before, as this isn't any ordinary deck of cards. It's made with Python.
The name of the game is to bamboozle the dealer.
So whad'ya think? Are you clever enough?
Shifty McShuffles also gives us following hints:
Shifty said his deck of cards is made with Python. Surely there's a weakness to give you the upper hand in his game.
Try to outsmart Shifty by sending him an error he may not understand.
We start the game and the first thing we see is the instructions. The aim is to score points on the smallest and largest card, while cards of the same height do not count. We quickly realize that we can't win. So let's read the article https://www.tenable.com/blog/python-nan-injection.
A NaN like this can mess up the entire program logic in Python. Let's try it out in the game without using more advanced tools.
So let's give our cards the following values: NaN, 0, 1 , 2, 3
.
And we've just scored points because our NaN value is both the highest and the lowest value.
Shifty McSuhffles tells us
Well, you sure are more clever than most of the tourists that show up here.
I couldn't swindle ya, but don't go telling everyone how you beat me!
An elf's gotta put food on the table somehow, and I'm doing the best I can with what I got.