Python Projects | Create Snake Game Step By Step In Python For Beginners

Поділитися
Вставка
  • Опубліковано 18 вер 2024

КОМЕНТАРІ • 226

  • @Tech2etc
    @Tech2etc  3 роки тому +11

    Please SUBSCRIBE! & help me to reach 50k❤ GOAL
    Thanks everyone.

    • @Tech2etc
      @Tech2etc  3 роки тому +2

      great bro, carry on.

    • @sameermore9757
      @sameermore9757 2 роки тому

      @@Tech2etc sir i have created but don't know the key to start it. From which botton it starts????

    • @Tech2etc
      @Tech2etc  2 роки тому +1

      @@sameermore9757 click any one of the arrow buttons on your keyboard.

    • @sameermore9757
      @sameermore9757 2 роки тому

      @@Tech2etc yes sir i have done it

    • @sameermore9757
      @sameermore9757 2 роки тому

      @@Tech2etc thanks a lot sir 🔥🔥🔥🔥

  • @tsa7736
    @tsa7736 2 роки тому +1

    Bro I have problem in line 118 can u plz tell me how to solve?

    • @Tech2etc
      @Tech2etc  2 роки тому

      Please join our discord for discuss about it

  • @osamaal-saadi3821
    @osamaal-saadi3821 3 роки тому +36

    When you make those kinds of videos can you explain each line of code and what it does, it will be more beneficial.. thank you

  • @edwardmakalski5185
    @edwardmakalski5185 Рік тому +1

    I love your content, very informative, my friend ari likes your content too, please keep it up!!!! I wish to see more of your videos!

  • @petertiboldi5308
    @petertiboldi5308 2 роки тому +2

    Thx bro, it worked! NICE tutorial!!!

  • @Eth_Mey
    @Eth_Mey Рік тому

    Nice one all work as it should🎉

  • @MarcixGames
    @MarcixGames Рік тому +3

    i know why there is a bug because it doesn't work in pycharm it only works in python

  • @yashsapre1711
    @yashsapre1711 Рік тому +3

    Hi bro. I typed the same but my snake isn't moving instead showing error in turtle.Terminator() line. Please reply asap.

  • @techofcraze
    @techofcraze 3 місяці тому

    It's work bro... Thnk u❤️

  • @dukeankrah9453
    @dukeankrah9453 Рік тому +2

    Hi, great lecture, I did everything step by step, but having error here # snake & fruit colision , if snake.distance(fruit) < 20:

  • @manhwaboss1473
    @manhwaboss1473 5 місяців тому +1

    its not lined up perfectly, how to fix that

  • @stan8966
    @stan8966 3 роки тому

    Thank you so much. highly appreciate!

  • @EACWorksYT
    @EACWorksYT Рік тому

    it works! tysm

  • @jokerface345
    @jokerface345 3 роки тому

    TECH 2etc your amazing thanks very much have helped me alot in learning

  • @Vidyananda2002
    @Vidyananda2002 Рік тому +1

    after game over to restart the game again we have to run the code again instead of that can u define any function of it and by clicking on the restart button we can start the game again

  • @WexterYoutube
    @WexterYoutube 2 роки тому

    Perfect a project brooo

  • @Ishmalirfan
    @Ishmalirfan 4 місяці тому

    please teach to add play, replay and quit buttons in this code

  • @mohammedonsi3797
    @mohammedonsi3797 Рік тому

    why
    line 11, in screen.bgcolor("#ididid")

  • @Gtlovers
    @Gtlovers Рік тому

    unindent does not match any outer in dentation level (,line 125)

  • @cammy6678
    @cammy6678 Рік тому +2

    Hello! I've compared my code and the source code and it's the same but the snake still doesn't move :(

  • @TechTanim
    @TechTanim 3 роки тому

    nice vaia

  • @md.motiurrahman4724
    @md.motiurrahman4724 3 роки тому +1

    My problem,at line 7, in
    screen = turtle.screen( )
    Attribute Error: module 'turtle' has no attribute 'screen'.
    So, help me

  • @arzeynepomuceno1470
    @arzeynepomuceno1470 2 роки тому +1

    sir , i have problems in line 60 i cant run the code, what do i need to do, ive followed your code precisely, its still not run.
    ps:beginner here.

    • @Tech2etc
      @Tech2etc  2 роки тому +1

      Source code is given in the description. Have a look at that. You will find your error.

  • @hirakhan5852
    @hirakhan5852 Рік тому +1

    when i run the code my screen is freezed and snake does not move please help asap!

  • @trickysnipy
    @trickysnipy 3 роки тому +2

    At line 89 , if snake.direction == "right":
    I am getting " indentationerror : unindent does not match any outer indentation level
    Pls help me!

    • @Tech2etc
      @Tech2etc  3 роки тому +1

      I will recommend you to checkout the code again. There maybe any condition is wrong.

    • @trickysnipy
      @trickysnipy 3 роки тому +1

      @@Tech2etc no , I have written the code exactly same , but I will check it again. If i ahve any problem I will ask you again! Thankyou 😀

    • @Tech2etc
      @Tech2etc  3 роки тому +1

      @@trickysnipy sure bro

  • @m4rkoek768
    @m4rkoek768 2 роки тому

    thansk brooo

  • @king0fsilence
    @king0fsilence 6 місяців тому +1

    My isn't working!?

  • @mohanlalmandal5513
    @mohanlalmandal5513 2 роки тому

    Very good

  • @ZedAnimationStudio
    @ZedAnimationStudio 2 роки тому +1

    Hi the video was nice but as I open the game it shows game over your score was 0 but i didn't even play the game and in terminal box it show your application has been destroyed pls tell me what to do

  • @omkarmuni3995
    @omkarmuni3995 2 роки тому +1

    I got an IindentationError: unident doesnot match any outer indentation level at line 125

    • @omkarmuni3995
      @omkarmuni3995 2 роки тому

      Please help me

    • @benjaminmyers288
      @benjaminmyers288 Рік тому

      it means your line is too far forward, you may have accidentally added a space to the beggining of your line. Hope this helps.

  • @aniketagrawal8280
    @aniketagrawal8280 9 місяців тому

    I was having a doubt that after the final score displayed on the screen, the blue screen is blinking and if we close the turtle then it is showing error in the "screen.clear()" command. In the end of the video, in your code also the same error was coming (time line 27:36) but you haven't explain it in the video. Can you explain this.

  • @digitalpanda5969
    @digitalpanda5969 Рік тому

    Python Projects | Create Snake Game Step By Step In Python For Beginners

  • @greatwayabdu
    @greatwayabdu 2 роки тому

    Hi Thanks for recording it is working I wrote all the words carefully
    But I want that, For example I played and touched the line and lose the game and it write GAME OVER YOUR SCORE IS ...
    then I have to exit and play again, But I want that press ENTER button and back to game not exiting

  • @harshjain8345
    @harshjain8345 3 роки тому

    Great video.. Your laptop model?

    • @Tech2etc
      @Tech2etc  3 роки тому +1

      Thank uu.. Its Dell Inspiron 15 3000 series.

    • @harshjain8345
      @harshjain8345 3 роки тому +1

      @@Tech2etc i5 10 gen variant?

    • @Tech2etc
      @Tech2etc  3 роки тому +1

      @@harshjain8345 No. Its i5 5th gen.

  • @Saturn_Uranus
    @Saturn_Uranus Рік тому +1

    So, I completed it and it’s working but the problem here is my snake is not moving 😂 how do I set the controls?

  • @Vidyananda2002
    @Vidyananda2002 Рік тому

    and how can we save the highscores every time it should show the highscore and update it

  • @evabucekova7305
    @evabucekova7305 2 роки тому +5

    Hi, you're great, I did everything step by step, but when I start the game, everything looks as it should, but I can't move with the snake, would you please advise me?

    • @Tech2etc
      @Tech2etc  2 роки тому +1

      Please check the shortcut key conditions code again which you have created for moving the snake.

    • @ankushhadge9571
      @ankushhadge9571 2 роки тому +1

      @@Tech2etc i tried but facing the same error, even after changing the shortcut key.

    • @felipegomes6312
      @felipegomes6312 2 роки тому

      @@ankushhadge9571
      def snake_move():
      if snake.direction == "up":
      y = snake.ycor()
      snake.sety(y + 20)
      if snake.direction == "down":
      y = snake.ycor()
      snake.sety(y - 20)
      if snake.direction == "left":
      x = snake.xcor()
      snake.setx(x - 20)
      if snake.direction == "right":
      x = snake.xcor()
      snake.setx(x + 20)

    • @suyashdhumal4361
      @suyashdhumal4361 Рік тому +1

      Same error

    • @jameskenneth4653
      @jameskenneth4653 Рік тому +1

      I get the same error

  • @Maxwell_Integral
    @Maxwell_Integral 2 роки тому +1

    Sir for some reason this error is showing and the game doesn't even open. please help me fix it
    screen.onekeypress(snake_go_down, "Down")
    AttributeError: '_Screen' object has no attribute 'onekeypress' (error)

    • @Tech2etc
      @Tech2etc  2 роки тому

      this is not "one...key....press".
      Correct form is "on.....key.....press".
      It will be screen.onkeypress......
      Please correct your spelling mistakes.

    • @Maxwell_Integral
      @Maxwell_Integral 2 роки тому

      @@Tech2etc Thank you, that really helped

    • @Shweta-wz2cz
      @Shweta-wz2cz Рік тому

      I'm also getting same error with right spelling.

  • @abhishekmalpote9411
    @abhishekmalpote9411 3 роки тому +2

    Bro plz tell me the version of python you are using for it

    • @Tech2etc
      @Tech2etc  3 роки тому +1

      Im using the latest version of pycharm

    • @akgang602
      @akgang602 3 роки тому +1

      @@Tech2etc he is asking python version 🙄

    • @Tech2etc
      @Tech2etc  3 роки тому +1

      @@akgang602 Oh sorry.. then its version 3.8.3 im currently using .

    • @abhishekmalpote9411
      @abhishekmalpote9411 3 роки тому

      @@Tech2etc thanx bro

    • @Tech2etc
      @Tech2etc  3 роки тому

      @@abhishekmalpote9411 Pressure

  • @sri74r
    @sri74r 2 роки тому

    hi
    i tried to start but it shows error
    in line 3 where i typed import turtle
    i can't find the problem except it doesnt turn gray

  • @sagargaming9236
    @sagargaming9236 2 роки тому +1

    Main loop is not working for me
    While True but it's not working

  • @captainluffy177
    @captainluffy177 2 роки тому

    Thank you for the amazing vedio everything is working except that my snake can only eat 1 food. For some reason the snake can't eat 2nd and it just goes past the 2nd food.

  • @ranggars_
    @ranggars_ Рік тому

    i gor error line 138
    '>' not supprted between instance of 'method' and 'int'

  • @KarikariKwameAnim
    @KarikariKwameAnim 5 місяців тому

    I followed your process but after I run, it doesn't pop up

  • @kumarayushman288
    @kumarayushman288 Рік тому

    It saying direction is in turtle attribute has no direction

  • @ScratchWithFrank-pw9cq
    @ScratchWithFrank-pw9cq 11 місяців тому

    so i went through the whole thing and copied it exactly but the score system doesnt work and my snake wouldnt grow. Any idea on how to fix this?? (I just started actual coding after moving from scratch so idk what im doing)

  • @TheOfficialFliksPlayz
    @TheOfficialFliksPlayz 20 днів тому

    My python is different which one is this

  • @g.n_amir76
    @g.n_amir76 10 місяців тому

    Screen.listen () is error for me

  • @ayushpatel_0437
    @ayushpatel_0437 2 роки тому

    bad event type or keysym error generated
    What should I do?

  • @manavwashal3243
    @manavwashal3243 Рік тому

    It shows error on .direction while designing snake how can i fix it ?

  • @DrDelulu
    @DrDelulu 2 роки тому

    When I press and key the snake does not move, I followed all of your steps and your fixes hut still nothing, and it says my line 88 is wrong the screen.update() and I don't know how to fix it, please help

    • @Tech2etc
      @Tech2etc  2 роки тому

      Please get the code from link given in the description.

  • @neerudupavanachyuth6205
    @neerudupavanachyuth6205 Рік тому +1

    Hi bro.. I executed this code in pycharm.. But.. At last it is showing the error that is last line turtle. Terminator ()

    • @rafirehad3195
      @rafirehad3195 Рік тому

      turtle.Terminator()
      are u writing with space?

  • @LongNguyen-jx8dv
    @LongNguyen-jx8dv Рік тому

    Hi, i am having an issue than when i score a point i suddenly lose. I did the same code like you.

  • @laguadoradrianr.1891
    @laguadoradrianr.1891 2 роки тому

    I copy all the code .Why don't turn right and left after the snake has passed the border. I hope you can help me

  • @hmdude
    @hmdude 2 роки тому

    I finish it, but it shows up for a second then goes away, why does this happen

  • @whiterranger8206
    @whiterranger8206 2 роки тому

    I did everything, but on line 117, something happened with the speed. I don’t know what it was, my code was the same as yours, pls help

  • @PrernaJadhav-r4h
    @PrernaJadhav-r4h Рік тому

    Output screen is not able to hold waht to do

  • @daringd2147
    @daringd2147 Рік тому

    IDK what did I done wrong but after my snake eat the first fruit . The second food is literally invincible from getting eaten . My snake just run through the food . Can you help me ?

  • @jentibambhaniya4436
    @jentibambhaniya4436 5 місяців тому +1

    It is not working

  • @eliaremon802
    @eliaremon802 2 роки тому

    i have a problem that when i take the food the head is seperated from the body

    • @Tech2etc
      @Tech2etc  2 роки тому

      Oh my god!.....
      Please recheck your code & save the snake.

  • @a.hannan_06
    @a.hannan_06 Рік тому +1

    i request someone to paste the whole code in the comment sec!! it would be helpful.

    • @ryandavis3912
      @ryandavis3912 Рік тому +1

      #importing libraries
      import turtle
      import random
      import time
      #creating turtle screen
      screen = turtle.Screen()
      screen.title('SNAKE GAME')
      screen.setup(width = 700, height = 700)
      screen.tracer(0)
      turtle.bgcolor('green')
      ##creating a border for our game
      turtle.speed(5)
      turtle.pensize(4)
      turtle.penup()
      turtle.goto(-310,250)
      turtle.pendown()
      turtle.color('black')
      turtle.forward(600)
      turtle.right(90)
      turtle.forward(500)
      turtle.right(90)
      turtle.forward(600)
      turtle.right(90)
      turtle.forward(500)
      turtle.penup()
      turtle.hideturtle()
      #score
      score = 0
      delay = 0.1
      #snake
      snake = turtle.Turtle()
      snake.speed(0)
      snake.shape('square')
      snake.color("black")
      snake.penup()
      snake.goto(0,0)
      snake.direction = 'stop'
      #food
      fruit = turtle.Turtle()
      fruit.speed(0)
      fruit.shape('circle')
      fruit.color('red')
      fruit.penup()
      fruit.goto(30,30)
      old_fruit=[]
      #scoring
      scoring = turtle.Turtle()
      scoring.speed(0)
      scoring.color("black")
      scoring.penup()
      scoring.hideturtle()
      scoring.goto(0,300)
      scoring.write("Score :",align="center",font=("Courier",24,"bold"))
      #######define how to move
      def snake_go_up():
      if snake.direction != "down":
      snake.direction = "up"
      def snake_go_down():
      if snake.direction != "up":
      snake.direction = "down"
      def snake_go_left():
      if snake.direction != "right":
      snake.direction = "left"
      def snake_go_right():
      if snake.direction != "left":
      snake.direction = "right"
      def snake_move():
      if snake.direction == "up":
      y = snake.ycor()
      snake.sety(y + 20)
      if snake.direction == "down":
      y = snake.ycor()
      snake.sety(y - 20)
      if snake.direction == "left":
      x = snake.xcor()
      snake.setx(x - 20)
      if snake.direction == "right":
      x = snake.xcor()
      snake.setx(x + 20)
      # Keyboard bindings
      screen.listen()
      screen.onkeypress(snake_go_up, "Up")
      screen.onkeypress(snake_go_down, "Down")
      screen.onkeypress(snake_go_left, "Left")
      screen.onkeypress(snake_go_right, "Right")
      #main loop
      while True:
      screen.update()
      #snake and fruit coliisions
      if snake.distance(fruit)< 20:
      x = random.randint(-290,270)
      y = random.randint(-240,240)
      fruit.goto(x,y)
      scoring.clear()
      score+=1
      scoring.write("Score:{}".format(score),align="center",font=("Courier",24,"bold"))
      delay-=0.001

      ## creating new_ball
      new_fruit = turtle.Turtle()
      new_fruit.speed(0)
      new_fruit.shape('square')
      new_fruit.color('red')
      new_fruit.penup()
      old_fruit.append(new_fruit)

      #adding ball to snake

      for index in range(len(old_fruit)-1,0,-1):
      a = old_fruit[index-1].xcor()
      b = old_fruit[index-1].ycor()
      old_fruit[index].goto(a,b)

      if len(old_fruit)>0:
      a= snake.xcor()
      b = snake.ycor()
      old_fruit[0].goto(a,b)
      snake_move()
      ##snake and border collision
      if snake.xcor()>280 or snake.xcor()< -300 or snake.ycor()>240 or snake.ycor()

  • @govindl6348
    @govindl6348 11 місяців тому

    Bro I can't get this
    line 140, in
    screen.clear()

  • @nehakapoor3719
    @nehakapoor3719 2 роки тому

    Bro, pls help me, I am getting error, Traceback (most recent call last):
    File "C:\Users\Rishitt\PycharmProjects\snakegame\main.py", line 121, in
    old_fruit = append(new_fruit)
    NameError: name 'append' is not defined

  • @AyaanMahmood-be2yj
    @AyaanMahmood-be2yj Рік тому

    hi tech 2 etc can you put the link that you used to create the snake game in the comment box when you see it thanks.

  • @annakoukouri573
    @annakoukouri573 Рік тому

    it says to me File "C:\Users\User\AppData\Local\JetBrains\PyCharm Community Edition 2022.2.2\jbr\bin\snakegame\main.py", line 102, in
    screen.onkeypress(snake_go_up, "up")
    File i dont know what mistake i did can you help me?

    • @lailaguizel8979
      @lailaguizel8979 Рік тому +1

      I think you need the capitalize the U in "up"

  • @BEU167
    @BEU167 6 місяців тому

    Line no 140:-screen.clear() error AA Raha ha please help me bro 😢

  • @lilyimit4723
    @lilyimit4723 2 роки тому

    it was amazing even tho when my snake eats an apple his speed goes to the moon and idk how to fix it

  • @danielmorars4850
    @danielmorars4850 2 роки тому

    hi I tried to do this but I have a problem in line 39 about speed it say line 39, in
    snake.speed()
    AttributeError: 'list' object has no attribute 'speed'

    • @Cat_6921
      @Cat_6921 2 роки тому

      hello this will help you also plz sub to my yotube

    • @Cat_6921
      @Cat_6921 2 роки тому +1

      #snake
      snake= turtle.Turtle()
      snake.speed()
      snake.shape("circle")
      snake.color("green")
      snake.penup()
      snake.goto(0,0)
      snake.direction = 'stop'

    • @benjie293
      @benjie293 Рік тому

      @@Cat_6921
      # snake
      snake = turtle.Turtle()
      snake.speed(0)
      snake.shape("square")
      snake.color("green")
      snake.penup()
      snake.goto(0, 0)
      snake.direction = 'stop'
      had that error too, check your spacing between the 'snake = turtle.Turtle

  • @anshmodi7322
    @anshmodi7322 3 роки тому

    Hello Buddy ,
    I can't play this game. Even if I press any key and I try in both system (Mac and Windows) but the same problem game does not start.

  • @sachinnaik10101
    @sachinnaik10101 2 роки тому

    bro turtle.Terminator() error
    it says code is unreachable

  • @farhanrahman7664
    @farhanrahman7664 Рік тому

    AttributeError: module 'turtle' has no attribute 'screen'. Did you mean: 'Screen'. WHAT SHOULD I DO TO CORRECT THIS ERROR?

    • @perryroblox
      @perryroblox 8 місяців тому

      It means that You Need to Make the s letter To Capital S Not like just screen Captial S

  • @vwvwvwvwvwvwvwvwvwvw9
    @vwvwvwvwvwvwvwvwvwvw9 2 роки тому

    What did you use to run the code?

    • @Tech2etc
      @Tech2etc  2 роки тому

      Pycharm code editor.

  • @FBDev64
    @FBDev64 Рік тому

    I have an error when running on powershell. it says that speed should have an argument
    here's my code
    #import packages
    import turtle
    import random
    import time
    #creating screen
    screen = turtle.Screen()
    screen.title("SNAKE GAME")
    screen.setup(width=700,height=700)
    screen.tracer(0)
    screen.bgcolor("#1d1d1d")
    #creating border
    turtle.speed(5)
    turtle.pensize(4)
    turtle.penup()
    turtle.goto(-310, 250)
    turtle.pendown()
    turtle.color("red")
    turtle.forward(600)
    turtle.right(90)
    turtle.forward(500)
    turtle.right(90)
    turtle.forward(600)
    turtle.right(90)
    turtle.forward(500)
    turtle.penup()
    turtle.hideturtle()
    #score
    score = 0;
    delay = 0.1
    #snake
    snake = turtle.Turtle
    turtle.speed(speed=)
    snake.shape("square")
    snake.color("green")
    snake.penup()
    snake.goto(0, 0)
    snake.direction = 'stop'
    #food
    fruit = turtle.Turtle
    fruit.speed()
    fruit.shape()
    fruit.color()
    fruit.penup()
    fruit.goto()
    old_fruit = []
    #scoring
    scoring = turtle.Turtle
    scoring.speed(0)
    scoring.color("white")
    scoring.penup()
    scoring.hideturtle()
    scoring.goto(0, 300)
    scoring.write("Score: ", align="center", font=("Courier", 24, "bold"))
    #define how to move
    def snake_go_up():
    if snake.direction != "down":
    snake.direction = "up"
    def snake_go_down():
    if snake.direction != "up":
    snake.direction = "down"
    def snake_go_left():
    if snake.direction != "right":
    snake.direction = "left"
    def snake_go_right():
    if snake.direction != "left":
    snake.direction = "right"
    def snake_move():
    if snake.direction == "up":
    y = snake.ycor()
    snake.sety(y + 20)
    if snake.direction == "down":
    y = snake.ycor()
    snake.sety(y - 20)
    if snake.direction == "left":
    y = snake.ycor()
    snake.sety(y - 20)
    if snake.direction == "right":
    x = snake.xcor()
    snake.setx(x + 20)
    #keyboard binding
    screen.listen()
    screen.onkeypress(snake_go_up, "Up")
    screen.onkeypress(snake_go_down, "Down")
    screen.onkeypress(snake_go_left, "Left")
    screen.onkeypress(snake_go_right, "Right")
    #main loop
    while True:
    screen.update()
    # snake and fruit collision
    if snake.distance(fruit) 0:
    a = snake.xcor()
    b = snake.ycor()
    old_fruit[0].goto(a, b)
    snake_move()
    #snake and border collision
    if snake.xcor () > 280 or snake.xcor() < 300 or snake.xcor() < -248:
    time.sleep(1)
    screen.clear()
    screen.bgcolor("turquoise")
    scoring.goto(0, 0)
    scoring.write("GAME OVER
    Your score is {}".format(score), align="center", font=("Courier", 30, "bold"))
    #snake collision
    for food in old_fruit:
    if food.distance(snake) < 20:
    time.sleep(1)
    screen.clear()
    screen.bgcolor("turquoise")
    scoring.goto(0, 0)
    scoring.write("GAME OVER
    Your score is {}".format(score), align="center", font=("Courier", 30, "bold"))
    time.sleep(delay)
    turtle.Terminator

  • @EmirKayaloglu
    @EmirKayaloglu Рік тому

    for index in range(len(old_fruit),-1,0,-1):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: range expected at most 3 arguments, got 4
    Bro please Help Me

  • @ezinnenath7421
    @ezinnenath7421 Рік тому

    I did everything but I kept getting invalid direction

  • @VALORANTPLAYERZZZZ
    @VALORANTPLAYERZZZZ Рік тому

    it is not moving wat i should do

  • @outcastongfuel1398
    @outcastongfuel1398 3 роки тому

    HI question; when I play the game, i can't move for some reason, do you know why? I have followed everything in the video. Great vid btw

    • @Tech2etc
      @Tech2etc  3 роки тому +1

      i also had the same problem... and i did debugged all errors at the end of the video. Please watch the full tutorial...
      Specially checkout the x, y position part and binding part again.. There must be any wrong value...

    • @sameermore9757
      @sameermore9757 2 роки тому +1

      Sir my snake is not moving from which botton it moves. Or i have done any error

    • @meryemelachhab7129
      @meryemelachhab7129 2 роки тому +1

      @@sameermore9757 did u find any solution ? i have the same probleme

    • @sameermore9757
      @sameermore9757 2 роки тому

      @@meryemelachhab7129 just check the code very very care fully. It seems that there is no mistake but there is. So check it from first line to last

  • @AnirudhSharma-qt7yj
    @AnirudhSharma-qt7yj Рік тому

    old_fruit [ ] is showing a problem on pycharm

  • @m-fazin
    @m-fazin 2 роки тому

    AttributeError: partially initialized module 'turtle' has no attribute 'title' (most likely due to a circular import). Did you mean: 'turtle'?
    error

    • @FBDev64
      @FBDev64 Рік тому

      WICH python do u use

  • @KawiiNinja
    @KawiiNinja 2 роки тому

    Is this only for pc or we can play this game in Android?

    • @Tech2etc
      @Tech2etc  2 роки тому

      You can play it in android also. But you have to first convert it into apk file. I have another tutorial about the full process... code to apk.. check our channel for the tutorial.

  • @anveramanathullah7140
    @anveramanathullah7140 Рік тому

    Bro, I also wrote the same code, but it's not working

  • @meryemelachhab7129
    @meryemelachhab7129 2 роки тому

    why the snake can't move in any direction , even tho i followed all the steps and fixed the errors

    • @Tech2etc
      @Tech2etc  2 роки тому

      Source code link given in the description. Please compare that with your code.

  • @Theguywhoreallyjustrhymed
    @Theguywhoreallyjustrhymed 2 роки тому

    My snake wont move. I checked all the snake_move functions and it still didint work

    • @Tech2etc
      @Tech2etc  2 роки тому

      Source code link given in the description. Please compare your code with that one. Your will find the error if there is any.

    • @Theguywhoreallyjustrhymed
      @Theguywhoreallyjustrhymed 2 роки тому

      @@Tech2etc i used the source code and it still didn't work. Whenever i pressed a key it would teleport my snake into the border in that direction.

  • @vishals3234
    @vishals3234 7 місяців тому

    Which software

  • @jeffcastillo495
    @jeffcastillo495 Рік тому

    I did everything also everythings the same as yours but mine wont work

  • @ashwintiwari103
    @ashwintiwari103 3 роки тому

    Brother I am having a small TRACEBACK error and an ATTRIBUTE error from where can i get ur help plzz repl y

    • @Tech2etc
      @Tech2etc  3 роки тому

      please explain the error.

    • @ashwintiwari103
      @ashwintiwari103 3 роки тому

      @@Tech2etc are u at instagram or telegram or may i have your whatsapp number
      I shall send you the pic of error

    • @Tech2etc
      @Tech2etc  3 роки тому

      @@ashwintiwari103 My insta & fb account link given in the description.

  • @もろは-d9k
    @もろは-d9k 3 роки тому

    Hello master they need the application to run this program this game or not?
    If need the application pls give the link for download the app.

    • @Tech2etc
      @Tech2etc  3 роки тому

      I have a tutorial about how to convert a py file into an exe file/app.... I gave that snake app download link on that video description. You can download it from there. Please find out that tutorial on my channel.

  • @penguinman2044
    @penguinman2044 2 роки тому

    man why when i start the game the sanke dosent move

  • @PreetVadhiya
    @PreetVadhiya 6 місяців тому

    why dont you share the code

  • @bemschurger
    @bemschurger Рік тому

    The game just crashes when i open up it

  • @chinnu9036
    @chinnu9036 3 роки тому

    Sir there is Error in code. In
    ## snake and border collision
    Line no 150
    Screen.clear()
    👆🏻 here it is showing Error. Please help how to fix this.

    • @Tech2etc
      @Tech2etc  3 роки тому

      Code link given in the description. Please match with my code... There must be any x or y position mistake in your code.

    • @chinnu9036
      @chinnu9036 3 роки тому

      @@Tech2etc the code line number which I have mentioned is from your code source only sir. I have tried your code also to check and find but it is showing same Error only. Please check it

  • @MEHRIMAENTERTAINMENT-cu5ni
    @MEHRIMAENTERTAINMENT-cu5ni Рік тому

    your code is error,
    But how to run your code?

  • @Gtlovers
    @Gtlovers Рік тому

    error in line 125

  • @eliaremon802
    @eliaremon802 2 роки тому

    what is the name of this program?

  • @slayer_xd9760
    @slayer_xd9760 Рік тому

    I am working on this for a whole day and my back is hurting alot. My all elements are okay but the snake doesn't move. if u have any message media give it. I will show u my work and see what have i done. Please this is my request I did this for school work

    • @Tech2etc
      @Tech2etc  Рік тому

      I have added the source code in the description. You can get the source code from there & compare it with your code.
      But still if you are facing any problems, check description to contact with me.

    • @slayer_xd9760
      @slayer_xd9760 Рік тому

      @@Tech2etc ok thanks

    • @slayer_xd9760
      @slayer_xd9760 Рік тому

      @@Tech2etc I am still having problem and I don’t know how to do anything now because it’s messed up. Just give ur contact info and let’s have the conversation there.

  • @JonathanDaily
    @JonathanDaily 3 роки тому +1

    bro i like your content, btw why can't i install the turtle in my terminal

    • @Tech2etc
      @Tech2etc  3 роки тому

      Thanks... Is there any message or error ?

  • @MREditz170
    @MREditz170 2 роки тому

    i got the screen update error

  • @heretheboxoflove6896
    @heretheboxoflove6896 2 роки тому

    Screen is bit blur

  • @abhishekmalpote9411
    @abhishekmalpote9411 3 роки тому

    Will it be okay for python 3.9

    • @Tech2etc
      @Tech2etc  3 роки тому +1

      Yeah it will be ok.

  • @brendaonsare8173
    @brendaonsare8173 2 роки тому

    How do start a game