Author Topic: Programming with the kids  (Read 14888 times)

Dragon

  • Administrator
  • Platinum Level
  • *****
  • Posts: 4903
  • Have you played my board game?
    • Rival Troops
Programming with the kids
« on: January 14, 2017, 16:30:42 »
My oldest kids have started programming in Python at school. I think it's really cool. I was showing some stuff to my daughter and had suggested using rainbow colors for a circle. (Originally, I she was drawing multiple circles, with different colors for each one, but the words came out a little different as I was leaving the room.) My son took up the challenge though and came up with this... which I just had to show off...

Attached is a screenshot of the end result... he said it's not perfect, but I told him he can update it, but this was great. (This was done on repl.it.) I'm going to challenge my kids some more with this...

Code: [Select]
import turtle

t = turtle.Turtle()
t.speed(100)

for i in range(11):
  t.pencolor('red')
  t.forward(10)
  t.right(5)
for i in range(11):
  t.pencolor('orange')
  t.forward(10)
  t.right(5)
for i in range(11):
  t.pencolor('yellow')
  t.forward(10)
  t.right(5)
for i in range(11):
  t.pencolor('green')
  t.forward(10)
  t.right(5)
for i in range(10):
  t.pencolor('blue')
  t.forward(10)
  t.right(5)
for i in range(11):
  t.pencolor('purple')
  t.forward(10)
  t.right(5)
for i in range(10):
  t.pencolor('pink')
  t.forward(10)
  t.right(5) 
« Last Edit: July 15, 2021, 16:30:04 by Dragon »
"Gee Brain, what are we gonna do tonight?" "The same thing we do every night, try to take over the world!" --Pinky and the Brain

Dragon

  • Administrator
  • Platinum Level
  • *****
  • Posts: 4903
  • Have you played my board game?
    • Rival Troops
Re: Programming with the kids
« Reply #1 on: February 27, 2018, 18:49:49 »
I figured I'd update this thread since it was the first one that I found when I was looking for a link to recommend. Here are some sites that you might want to check out if you or your kids are interested in programming.

codecombat.com - This is a great place to start! It's has a fun interactive adventure game that you get to write code in.
codecademy.com - After codecombat.com, you might want to check out some more languages at codecademy.
codingame.com - This one is my favorite place to exercise, but you'd need to have some of the basics down already for this site.
code.org - Maybe the most publicly known due to campaigns to teach programming, this is an interesting one that I've tried and recommend, but I haven't done much on it myself.


By the way, http://resizeimage.net/ is a great place to adjust your images to upload here. Try 600x400px size to stay under the 512KB limit.
« Last Edit: February 07, 2021, 13:48:56 by Dragon »
"Gee Brain, what are we gonna do tonight?" "The same thing we do every night, try to take over the world!" --Pinky and the Brain

Dragon

  • Administrator
  • Platinum Level
  • *****
  • Posts: 4903
  • Have you played my board game?
    • Rival Troops
"Gee Brain, what are we gonna do tonight?" "The same thing we do every night, try to take over the world!" --Pinky and the Brain

Dragon

  • Administrator
  • Platinum Level
  • *****
  • Posts: 4903
  • Have you played my board game?
    • Rival Troops
Re: Programming with the kids
« Reply #3 on: February 22, 2026, 00:45:20 »
I've finally come back around to CodeCombat.com, unfortunately I'm still stuck on Summit's Gate. I'm getting closer to completing it. I've made it through the final gate, but haven't been able to finish off all the ogres.

Checking back in on one of my favorite multi-player challenges, Pawn's Passage, I'm glad to see that my code is still pretty close to the top with a score of 6540. Back when I had first written my code, I made it to the top of the ladder for a short time. I was still up at rank 160 of 29k players when I checked today, more than a year after I submitted my code.
"Gee Brain, what are we gonna do tonight?" "The same thing we do every night, try to take over the world!" --Pinky and the Brain

Dragon

  • Administrator
  • Platinum Level
  • *****
  • Posts: 4903
  • Have you played my board game?
    • Rival Troops
Re: Programming with the kids
« Reply #4 on: March 08, 2026, 12:16:10 »
Coding Games In Scratch by Dr. Jon Woodcock (Revised and updated for Scratch 3.0 with Foreward by Carol Vorderman) is a book that I've been trying to use to get my kids into programming. See my full review on /forum/index.php?topic=26523.msg38452.
« Last Edit: March 08, 2026, 12:29:12 by Dragon »
"Gee Brain, what are we gonna do tonight?" "The same thing we do every night, try to take over the world!" --Pinky and the Brain