Heyo!
I shot a photo of Miro playing a new Minecraft Earth game on his phone. It's a bit like Pokemon Go, but a Minecraft instead.
Oh, and then to other things...
I rewrote the number guessing game I taught Miro on Bash in to a Python version:
import random
# Satunnaislukupeli
satLuku = random.randrange(100)
arvLuku = input("MitΓ€ lukua (1-100) ajattelen? ")
while int(arvLuku) != satLuku:
if (int(arvLuku)) < satLuku:
arvLuku = input("Liian pieni luku! Arvaa uudestaan: ")
else:
arvLuku = input("Liian suuri luku! Arvaa uudestaan: ")
print("Arvasit aivan oikein!!! ")
I added the "arvaa uudestaan"/"guess again" just that it's a bit more interactive, otherwise it's basically exactly the same program.
I wonder if I can use a for
-loop to recreate the game.
I already decided my next game will be a Stone-Paper-Scissors -game. I'm not doing anything graphical before I learn to create these things as algorithms on paper first. Flow charts have always been my downfall, and I want to get them right. Programming can be difficult if I can't first clearly construe what I want the program to do.
...and then teach the boys howto do it as well.
Yep, but that's it for today...
See ya!
Next |
---|
Daily and Fresh π· #233 |
Daily and Fresh π· #234 |
Daily and Fresh π· #235 |
Daily and Fresh π· #236 |
Daily and Fresh π· #237 |
Previous |
---|
Daily and Fresh π· #231 |
Daily and Fresh π· #230 |
Daily and Fresh π· #229 |
Daily and Fresh π· #228 |
Daily and Fresh π· #227 |
Weeklies |
---|
Weekly and Fresh πΈ #33 |
Weekly and Fresh πΈ #32 |
Weekly and Fresh πΈ #31 |
Weekly and Fresh πΈ #30 |
Weekly and Fresh πΈ #29 |