Posts

Showing posts with the label PYTHON TUTORIAL

TURTLE TUTORIAL FOR BEGINERS part 1

  Turtle Programming in Python Difficulty Level :   Medium “Turtle” is a Python feature like a drawing board, which lets us command a turtle to draw all over it! We can use functions like turtle.forward(…) and turtle.right(…) which can move the turtle around. Commonly used turtle methods are :   Method Parameter Description Turtle() None Creates and returns a new turtle object forward() amount Moves the turtle forward by the specified amount backward() amount Moves the turtle backward by the specified amount right() angle Turns the turtle clockwise left() angle Turns the turtle counterclockwise penup() None Picks up the turtle’s Pen pendown() None Puts down the turtle’s Pen up() None Picks up the turtle’s Pen down() None Puts down the turtle’s Pen color() Color name Changes the color of the turtle’s pen fillcolor() Color name Changes the color of the turtle will use to fill a polygon heading() None Returns the current heading position() None Returns the current position g...

HOW TO MAKE SNAKE GAME ON PYTHON TUTORIAL BY DIYA SHARMA

  How to Create a Snake game in Python using Turtle January 14, 2021   by diya sharma In this, we will learn how to  create a snake game in python using turtle . It is easy to create a Snake game in Python.   TTab About the game The snake game concept originated in 1976, developed by a British company called Gremlin Interactive. The snake game is considered an interesting and skillful game. It is popularized among people for generations. The snake in the snake game is controlled using four directions, and if the snakehead hits the wall or hits itself, then the snake dies, and the game will be ended with the score. The player’s main aim in the game is to achieve maximum points as possible by collecting the food. So, if you are a beginner and you learned about turtle then you can use this module for making a snake game. If you are new to Python turtle, check out  Python turtle programming  and  Draw colored filled shapes using Python Turtle . Overview of...