last day (14 days later) » 

6:14 PM
11
Q: Is my code nice and neat for a Tic-Tac-Toe board times 4?

MalachiI am trying to learn kTurtle (slightly different from Logo) so that I can help my daughter learn to write code. I have decided that I would write a program that would play Tic-Tac-Toe with a user. So far, all I have is the Game board, and I make it more than just a single board to add to the in...

 
are you being serious? I want the code reviewed, like am I coding it properly and am I following coding techniques and what not. I completely disagree with you, and if I didn't I would have to say that javascript isn't real code because it isn't compiled, and that only real coding languages have semi-colons, so VB, Python and Ruby doesn't belong on this site either. this is code and is completely on topic for this site.
you are right, $TwoThirdsX isn't being used. I sort of wrote this on the fly because everything seemed super simple and my first thought was that I wanted a line at 1/3 and 2/3 the width so I created that second variable, but when I implemented the code I went with 1/3 and then 1/3 from current location. thanks for pointing that out, @Josay. as for the a and b variables, I think that what I wanted to do was turn that part into a loop somehow, but you are right, the way it is written now would be better using the actual values.
I bet there are a couple of people that know more about KTurtle(Logo) than they are letting on... it's been at least 20 years since I worked in Logo myself. Thank you for looking @LincolnBergeson
she wants to Learn Ruby Next @EricSSH. I am teaching her on Edubuntu, it comes with KTurtle and Laby already installed. I am excited, because that means I need to learn Ruby as well...lol
@EricSSH, me too, I was introduced to Logo but I didn't have the software at home, so when I moved and left that school I stopped, that was at least 20 years ago. who knows where I would be if I had kept programming from that age....
 
youtube.com/watch?v=bncVBlTJXD0 Maybe this video will help you.
 
I like that. @swapedoc I will have to borrow that code to show my daughter....lol
 
I just checked kturtle tutorial after seeing your question and I was surprised to see guys making so creative figures basically coding something like this depends on your imagination and ofcourse first hand on recursion.Check this out: userbase.kde.org/File:Kturtle_drawing.png
 
there is something cool about KTurtle and Logo, the Turtle stays where he stops, so if you run the code again, it runs from his current location. My daughter she changes the numbers and runs the program over and over again, I think it may be time to introduce her to loops. @swapedoc. she knows a couple of commands, she is always making cool pictures.
 
6:14 PM
This is a good resource in case you want to learn and teach docs.kde.org/development/en/kdeedu/kturtle
 
@swapedoc I printed out the Syntax manual from there.
 
oh nice
how old is your daughter btw?
 
7 years old.
 
When I was 7 we didn't have a computer
kids are so lucky these days
 
my little guy will be 5 this year and he can't wait to start either, I am working on rebuilding a laptop for him to use under heave supervision (he is a boy, lol)
@swapedoc IKR
these are old laptops they will be using, freebies
her computer can barely run the newest Edubuntu OS right now.
 
6:20 PM
Are they really that interested
because when I was that small all I wanted was candies and cricket
lol
When they will complete highschool they will already come up as big programmers
like gennady
he became a champion at the age of 12
all because his parents were programmers
 
6:33 PM
I think that there will be a lot of programmers in the future. better start them now
 

last day (14 days later) »