I added an End game button with a sad cartoon face that says βDonβt quit me, I would hate to see you go.β
If you insist on leaving, it asks whether to save.
A joke that doubles as a useful feature.
1
8
The start screen got proper buttons:
Yes or No for your own pictures, and a clear instruction to select 4 pictures.
No typing, no guessing.
1
28
The dice took four attempts.
Too small.
Too big.
Wrong colours.
Sharp corners.
Version four: smaller, rounded, gold-edged, and finally part of the board instead of something sitting on top of it.
2
10
Before any game logic,
I made a picture of the empty board with row and column numbers on the edges.
A map you can code from beats a game youβre imagining in your head.
1
10
I did a little something π
Made one of my favorite games using only python ππ©βπ»
Maybe I would actually make it an open source project π€
2
13
Day 67 of learning #Python ππ
Letβs see how it all comes together.
β
Used class inheritance to extends Turtle directly
β
Called super().init() to inherit.
β
Used global variables to mutate
β
Used *= -1 to reverse ball direction
β
Used *= 0.9 to increase speed
4
98
Day 66 of learning #Python π
β
Used screen.onkey() to bind arrow keys to movement
β
Used .distance() to detect food collision
β
Speed increases on every food eaten
β
Used if name == "main" to run the game safely
From Snake class β Food β Scoreboard β Game π
5
75
Day 66 of learning #Python π
Scoreboard class for my Snake
β
Used .hideturtle() to display text without showing the cursor
β
Used .clear() & .write() to refresh the score on screen
β
Prefixed _display() to signal it's a private method
β
Increments score by 5 per food
3
29
Day 65 of learning #Python ππ¨
β
Reused the RGB colors extracted for my Hirst painting project
β
Used random.choice() to pick a new color on each refresh
β
Used random.randint() to spawn food at random coordinates
β
The snake changes color to match the food it eats π
4
49














