Love this little program! I like to add a little finish line in the init_turtle function so it's more clear who won. Something like: # create finish line finish = turtle.Turtle() finish.color('black') finish.shape('arrow') finish.speed(0) finish.penup() finish.setpos(-WIDTH//2, HEIGHT//2 - 20) finish.pendown() finish.forward(WIDTH)
Hi Tim. Please bring more sessions like this one. It's great to follow your explanations and tips while you build the code. Keep up with the good work.
What a conincidence! Today at afternoon I thought that now I will learn and make projects through turtle module and here you make it. It is a magic, Thank you so much for this video. ♥️
I appreciate the constant high-quality guides. I'm still going through your learning python playlist but you have SO MANY interesting project videos and explanations that I get sidetracked a lot lol. Thank you, Tim!
@@johnvardy9559 not with that attitude. and math is overrated, you better get good in understanding algorithms and how to apply them. 99% of the time you dont need math other than to understand what the algorithm does
What are the odds that this video was literally perfect for my newest CS project. We did a turtle project earlier and this time we have to take the same scene and create different outcomes based off of user input, just like how this will make different turtles based off the input. Thank you muchly
Hmmm... You know what would be interesting? To have a series of random projects like this, beginner intermediate or advance, and do some of these videos whenever you want / whenever you got nothing else better to do Yea... I know you have some projects on this channel but, you should keep doing these, they are awsome
Regarding the create turtles function, i achieved the same result without using enumerator specifically. Define the spacing, define the startposx, and just add spacing to startposx in each enumeration of the for loop. Another sidenote: Turtle.Color() returns a tuple of (pencolor, fillcolor), so returning the winning color can be as easy as return racer.color()[0] def create_turtles(colors): turtles = [] spacingx = WIDTH // (len(colors) + 1) startposx = -WIDTH // 2 + spacingx startposy = -HEIGHT // 2 + 20 for c in colors: t = turtle.Turtle() t.color(c) t.shape("turtle") t.left(90) t.penup() t.setpos(startposx, startposy) t.pendown() turtles.append(t) startposx += spacingx
12:55 You thought that you were further in the program than you were in reality I think? Very good tutorial by the way. This is how you can easily learn and have fun at the same time.
Thank You very much for the help with the project. I wanted to do something not related to pygame that I would enjoy and it is perfect. I undertsand how def works because of you! I thought doing this wouldn't be good for learning since I am copying line for line but turns not. Thanks very much Tim
Hey Tim, Thank you so much for this video. This was a really helpful and useful video. Though, I slightly changed my code. I always replace 'print' with pop up windows like turtle.numinput, showinfo from tkinter, showwarning from tkinter. Though tkinter and pygame don't work together in the sam game like tkinter and turtle.
I am havin a little issue even when I copy your code. Basicaly when a turtle won, there just spawn new turtles and start racing while the previus turtles are still on the screen. Anyways, brilliant video!
How do you make python have different colors for different words like that? Im using VS code and I have some colors but not as varied as yours. for example, the print is cyan and if,return are red on yours.
Hey Tim, just wanting to ask how you can generate coordinates or an array of co-ords (from literally a windows laptop screen) in python using a mouse and without installing/ getting the Pymouse program. Thnx!!
im having an issue with the amount of turtles racing. Although Im inputting a different amount it alway runs with 10. I've double checked the code a couple times and Im not seeing any issue. What could cause this?
What are you using usual python idle Or any other code editor, check your interpreter path, it would resolve the issue. Hope you have figured it out by now
Hey, Many python programmer will just copy the code and put on their LinkedIn, github... So if you're copying plz add vast functionality rather than tech with tim.
Mine is not working someone pls tell what is wrong, here is my code: def get_number_of_racers(): racers = 0 while True: racers = input('Enter the number of racers(2-10): ') if racers.isdigit(): racers = int(racers) else: print("Input is not numeric.... Try again") continue if 2
Hey Tim, I completed the code but I am having difficulty with line 55 which is racers = get_number_of_racers(), and also line 12 which says if racers.isdigit(): . I followed your video and got the screen to pop up, but now it is giving me errors. If anyone else can help me that would be greatly appreciated.
Love this little program! I like to add a little finish line in the init_turtle function so it's more clear who won. Something like:
# create finish line
finish = turtle.Turtle()
finish.color('black')
finish.shape('arrow')
finish.speed(0)
finish.penup()
finish.setpos(-WIDTH//2, HEIGHT//2 - 20)
finish.pendown()
finish.forward(WIDTH)
Hi Tim. Please bring more sessions like this one. It's great to follow your explanations and tips while you build the code. Keep up with the good work.
What a conincidence! Today at afternoon I thought that now I will learn and make projects through turtle module and here you make it.
It is a magic,
Thank you so much for this video. ♥️
I appreciate the constant high-quality guides. I'm still going through your learning python playlist but you have SO MANY interesting project videos and explanations that I get sidetracked a lot lol.
Thank you, Tim!
Waiting for a series on Artificial intelligence with Python (beginner to advanced).
It would be fun to cross AI and game.
leran keras and tensorflow
Im bad on mathematics, its possible i work with AI???
@@johnvardy9559 not with that attitude. and math is overrated, you better get good in understanding algorithms and how to apply them. 99% of the time you dont need math other than to understand what the algorithm does
@@CodeWithJoe 🙏 thank so much, your answer give me much Motivated,to go on it.
What are the odds that this video was literally perfect for my newest CS project. We did a turtle project earlier and this time we have to take the same scene and create different outcomes based off of user input, just like how this will make different turtles based off the input. Thank you muchly
Wow 1 hour?! I went through this whole video and it felt like 10 minutes.
Hmmm... You know what would be interesting? To have a series of random projects like this, beginner intermediate or advance, and do some of these videos whenever you want / whenever you got nothing else better to do
Yea... I know you have some projects on this channel but, you should keep doing these, they are awsome
Regarding the create turtles function, i achieved the same result without using enumerator specifically.
Define the spacing, define the startposx, and just add spacing to startposx in each enumeration of the for loop.
Another sidenote: Turtle.Color() returns a tuple of (pencolor, fillcolor), so returning the winning color can be as easy as return racer.color()[0]
def create_turtles(colors):
turtles = []
spacingx = WIDTH // (len(colors) + 1)
startposx = -WIDTH // 2 + spacingx
startposy = -HEIGHT // 2 + 20
for c in colors:
t = turtle.Turtle()
t.color(c)
t.shape("turtle")
t.left(90)
t.penup()
t.setpos(startposx, startposy)
t.pendown()
turtles.append(t)
startposx += spacingx
return turtles
This is a great project idea! Younger kids learning Python will love it.
12:55 You thought that you were further in the program than you were in reality I think?
Very good tutorial by the way. This is how you can easily learn and have fun at the same time.
Perfect Tim, good job! Thanks dude.
Thank You very much for the help with the project. I wanted to do something not related to pygame that I would enjoy and it is perfect. I undertsand how def works because of you! I thought doing this wouldn't be good for learning since I am copying line for line but turns not. Thanks very much Tim
Wow, your video are more hepful than the lessons of my teacher
Thanks - I'll review lists now.
The only other thing I might add is the possibility of a tie. If that happens this program would always show the first color as the winner .
Thanks for another easy to understand tutorial Tim
What a notification from tech with.....yeeeEEAAHH!!!! PYGAME!
Please can you try to create "street of rage" level 1 game please
Nice video. Would be awesome if you implemented multithreading on this project!
Inheretence is nice:
class RacingTurtle(turtle.Turtle):
def __init__(self, color):
super().__init__()
self.shape('turtle')
self.color(color)
self.pencolor('black')
self.penup()
self.left(90)
I get bored reading books. Please I learned more by doin project. Drop more videos please. I'm begging u
What a great explanation.
I am the luckiest person in the earth I saw it 100 times and 99 times I was able to guess which turtle will win.
I just took the video back 100 times
Hey Tim,
Thank you so much for this video. This was a really helpful and useful video. Though, I slightly changed my code. I always replace 'print' with pop up windows like turtle.numinput, showinfo from tkinter, showwarning from tkinter. Though tkinter and pygame don't work together in the sam game like tkinter and turtle.
Like this kind of video please continue
Scion is my favorite color.
Great demo. Thanks.
can any one explain this for me i dont get it
racer.setpos(-WIDTH//2 + (i + 1) * spacingx , -HIGHT//2 + 100)
That was awesome. thanks Tim
Great video!
Maybe I would be that fast in completing my homework as fast I clicked any youTube notification 🥺
Thanks man,well done
11:08
How the program came out of While loop as you didn't use the break statement after desirable condition. Could plz explain .
Second! Love your stuff tim
Sir, please i want more tutorials like this for practice
Amazing Tutorial :), you earned a sub
Thank you instructor very much. Awesome
thanks for the fun tutorial
for some reason my turtles are overlapping each other when i run the program
I love this so much
Can u make a playlist with all beginner projects?
Created a very similar project on my channel ! Dope video!
done, good excercise
Can anyone help me to fix the error I am getting , "if 2
thankss from brazil
beginner full kivy tutorial please 🙃
theres already another one
@@chikanmao8326 Thats very old...
Also I'm asking him to make a complete project like he did with django, flask and pygame
another one , great !
I am havin a little issue even when I copy your code. Basicaly when a turtle won, there just spawn new turtles and start racing while the previus turtles are still on the screen. Anyways, brilliant video!
Very good!
How do you make python have different colors for different words like that? Im using VS code and I have some colors but not as varied as yours. for example, the print is cyan and if,return are red on yours.
Hey Tim, just wanting to ask how you can generate coordinates or an array of co-ords (from literally a windows laptop screen) in python using a mouse and without installing/ getting the Pymouse program. Thnx!!
Please make videos on raspberry pi pico projects with tinyml
Can you please make a video on Network Automation using Python. I must say....it will be challanging for you.
it will make him more legendary if he does it. I hope you heard him Tim!
Common Tim, let's go for it. Waiting for a good network automation project. May be I could contribute to it😉
Can we simulate this race simulator via multithreading ..... if it makes sense.
you arethe best other guys just talk some nonsence
Please make a video on VM, Creating virtual machine using Hypervisior.
How i can change icon of window? help please!
Sometime in the future can you do another project for begginers who already know the python basics(like OOP, loops etc)
He made a checkers. But yea it's not really for beginners
Thanks mate
What cursor do you use? I have seen some videos of your and sometimes your cursors turns black?
Thanks you hero 🙂
im having an issue with the amount of turtles racing. Although Im inputting a different amount it alway runs with 10. I've double checked the code a couple times and Im not seeing any issue. What could cause this?
can we add that game in a html file with pyscript?
Waiting for a React series!
51:47 or we can just make it random which turtle starts first
Uhm, I ran the code on python and nothing happens(I used the download link)
alright guys, now try to make the same way but instead of going upwards, make the winner the one who gets out of the circle the fastest
Why do my turtles race twice?
i coudn't get that 'screen' attribute in my turtle module^^, can someone send help
?
As long as you have the 'import turtle' line at the top of your code, it should work
@@Cloud-tq5lj I already had done that but it's showing error ,idk where it's missing.ಠ ೧ ಠ
@@sonalikumari6020 same
What are you using usual python idle Or any other code editor, check your interpreter path, it would resolve the issue. Hope you have figured it out by now
Hey Tim do u know GD script? If u do can u make a tutorial on it
Hey, Many python programmer will just copy the code and put on their LinkedIn, github... So if you're copying plz add vast functionality rather than tech with tim.
Can I put names on turtles? :-)
Mine is not working someone pls tell what is wrong, here is my code:
def get_number_of_racers():
racers = 0
while True:
racers = input('Enter the number of racers(2-10): ')
if racers.isdigit():
racers = int(racers)
else:
print("Input is not numeric.... Try again")
continue
if 2
MATLAB miniseries please.
Hey Tim!
Please make a tutorial on Jarvis by Python....
Remember the “i like turtles” kid 😂
Waiting for AI in python
Hey Tim, I completed the code but I am having difficulty with line 55 which is racers = get_number_of_racers(), and also line 12 which says if racers.isdigit(): . I followed your video and got the screen to pop up, but now it is giving me errors. If anyone else can help me that would be greatly appreciated.
Hello
Hey tim, I am first!
If statement galore