This video demonstrates how to create pixel art in Python by using coordinate systems and conditional logic. The host solves a Minecraft Steve puzzle by applying Cartesian coordinates (X and Y axes) and polar coordinate transformations (2-Y) to define pixel positions. Key techniques include using absolute value functions for symmetry, creating tuples for coordinate pairs, and leveraging the game's 250-character limit to write efficient code. The solution shows how mathematical coordinate transformations can be used to generate symmetrical pixel patterns efficiently.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
Pydle
Added:Welcome to Puddle Hunt 247.
Puddle is a daily puzzle game you need to solve by writing Python code.
Um before we start, um just want to highlight a change um to Puddle.
And this should pop up the first time you load today.
Um I've removed the line limit cuz it doesn't really make sense, and I've replaced it with a character limit. And that applies to not um non-whitespace or uh new line characters. So, uh it doesn't matter if you have multiple spaces or indentations, uh but the character limit is 250 characters.
Okay.
And the stats also now go on uh this kind of different number of characters you've used.
Okay.
>> [snorts] >> Okay, so today's um Puddle is Minecraft Steve. Um you can compare my version of Steve.
Uh let me know what you think in the comments.
Um if you need to Puddle or uh you just want some more tips or tutorial on how to play Puddle, uh stick around as I've now solved yesterday's Puddle, which is also from Minecraft, and it's Creeper.
So, I think that's a pretty good Creeper.
Um Okay, so this should be fairly simple as it's [snorts] just green and black, and we don't have to worry about the greens, uh uh sorry, the blacks cuz that's the default background color. Um there's some symmetry around uh especially X. Um so, let's just use Cartesian coordinates for X and Y.
-2, 3.
Okay, first thing to do is just the straight line and horizontal the kind of the outline.
And we can simply say if absolute value of X = 2 or Y = 2.
2 + X now we need to convert back to polar coordinates 2 - Y.
And then it's not white, it's green.
Okay, and the reason we do 2 - Y is uh polar coordinates goes from top to bottom so Y uh is zero there and then it increases as you go down whereas normal Cartesian coordinates um going up would be positive. So, that's why we need to do 2 - Y on Y.
Okay, so um we need a few more green pixels.
Let's just tackle the um the ones on Y = 0.
And we're just going to create a tuple or tuple of absolute value of X {comma} Y = {plus} 1, 0.
Okay, so Y is zero there and X is either 1 or -1. That's why we take the absolute value of that.
Okay.
So, that's that one done and all that remains is um is the one on the Y axis um You could see we didn't really use any of the symmetry on Y.
So we could have done it as normal coordinates.
But let's stick with what we've got. So the final for X equals zero and Y and now we can just isolate the two Ys and it's going to be plus one and minus two.
Okay, so that should solve the problem.
Have a go. You can see in the share now it's number of characters, so it's 160 characters. So you see 250 should be plenty. Let me know on YouTube.
Let's comment on one of the videos um if you what do you think? Because I made this change based on some feedback I received on YouTube.
Okay, thanks for watching and I'll see you again tomorrow.
Um yeah, have a go at solving Steve.
Okay.
Related Videos

Definition:Bounded variation and if f is monotonic on [a,b] then f is Bounded variation on [a,b]
wingsofmathematicsbytanush2507
4K views•2019-09-05

Prof Chris Holmes | Bayesian fitting and evaluation of complex models arising in...
uclfacultyofpopulationheal9290
564 views•2019-07-03

Patrick Landreman: A Crash Course in Applied Linear Algebra | PyData New York 2019
PyDataTV
9K views•2019-11-30

Approximating the Standard Deviation from Data of a Histogram
donnasmith8529
15K views•2019-09-26

HSC Maths Standard 2 | "At Least One" Probability Rule
ATARNotesHSC
697 views•2019-05-20

Spectral Sequences Live! 17: The Grothendieck spectral sequence
k-theory8604
395 views•2025-11-10

Structural Equation Modeling for Beginners
QuantFish
1K views•2025-09-30

Exploring Practical Applications of Linear and NonLinear Models In Business Research Dr.Jeelan Basha
MallikarjunaDKaggal
258 views•2025-05-26
Trending

we're almost finished the house (ep.125)
JennaPhipps
347K views•2026-07-22

We Finally Know Where Saturn’s Rings Came From
astrumspace
79K views•2026-07-22

BIG BET: Cathie Wood goes ALL IN on Elon Musk
FoxBusiness
89K views•2026-07-22

MIC DROP: Smithsonian Director Called Out For Woke Propaganda
TheAmalaEkpunobi
37K views•2026-07-23