#kutubxonalar import turtle


Download 12.6 Kb.
Sana16.01.2022
Hajmi12.6 Kb.
#359994
Bog'liq
ilon oyini
byudjet tashkilotlarida moliyaviy natijalar hisobi, byudjet tashkilotlarida moliyaviy natijalar hisobi, byudjet tashkilotlarida moliyaviy natijalar hisobi, 3-mavzu, Bito'n test savollari 11, 1-mavzu N S, 4-mavzu N S , 4-mavzu N S , 5 ташаббус баени хотин кизлар, fizika konspekt, fizika konspekt, Понятие литературного процесса. Мировой литературный процесс и национальный литературный процесс, Небо надземлей, test

#kutubxonalar

import turtle


import time
import random

delay = 0.1

#hisob
score = 0
high_score = 0

# Ekranni sozlash


wn = turtle.Screen()
wn.title("Ilom O'yini")
wn.bgcolor('yellow')
wn.setup(width=600, height=600)
wn.tracer(0)

# Iloning boshi


head = turtle.Turtle()
head.speed(0)
head.shape("square")
head.color("black")
head.penup()
head.goto(0,0)
head.direction = "stop"

# Ovqati
food = turtle.Turtle()


food.speed(0)
food.shape("square")
food.color("red")
food.penup()
food.goto(0,100)

segments = []



# Hisob uchun joy
sc = turtle.Turtle()
sc.speed(0)
sc.shape("square")
sc.color("black")
sc.penup()
sc.hideturtle()
sc.goto(0,260)
sc.write("")
Download 12.6 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2022
ma'muriyatiga murojaat qiling