import turtle
import random
# Створюємо вікно
window = turtle.Screen()
window.setup(900, 700)
window.noscript("Черепашачі перегони")
window.bgcolor("lightgreen")
# Малюємо трасу
track = turtle.Turtle()
track.speed(5)
track.penup()
track.goto(-380, 200)
track.pendown()
for i in range(15):
track.write(i, align="center", font=("Arial", 14, "normal"))
track.right(90)
for _ in range(10):
track.penup()
track.forward(20)
track.pendown()
track.forward(20)
track.penup()
track.backward(400)
track.left(90)
track.forward(50)
track.pendown()
track.hideturtle()
# Створюємо черепашок
red_turtle = turtle.Turtle()
red_turtle.shape("turtle")
red_turtle.color("red")
red_turtle.penup()
red_turtle.goto(-380, 120)
blue_turtle = turtle.Turtle()
blue_turtle.shape("turtle")
blue_turtle.color("blue")
blue_turtle.penup()
blue_turtle.goto(-380, 80)
green_turtle = turtle.Turtle()
green_turtle.shape("turtle")
green_turtle.color("green")
green_turtle.penup()
green_turtle.goto(-380, 40)
orange_turtle = turtle.Turtle()
orange_turtle.shape("turtle")
orange_turtle.color("orange")
orange_turtle.penup()
orange_turtle.goto(-380, 0)
# Запускаємо перегони
race = False
while not race:
red_turtle.forward(random.randint(1, 5))
blue_turtle.forward(random.randint(1, 5))
green_turtle.forward(random.randint(1, 5))
orange_turtle.forward(random.randint(1, 5))
if red_turtle.xcor() >= 350 or blue_turtle.xcor() >= 350 or green_turtle.xcor() >= 350 or orange_turtle.xcor() >= 350:
race = True
# Завершуємо програму
window.mainloop()
import random
# Створюємо вікно
window = turtle.Screen()
window.setup(900, 700)
window.noscript("Черепашачі перегони")
window.bgcolor("lightgreen")
# Малюємо трасу
track = turtle.Turtle()
track.speed(5)
track.penup()
track.goto(-380, 200)
track.pendown()
for i in range(15):
track.write(i, align="center", font=("Arial", 14, "normal"))
track.right(90)
for _ in range(10):
track.penup()
track.forward(20)
track.pendown()
track.forward(20)
track.penup()
track.backward(400)
track.left(90)
track.forward(50)
track.pendown()
track.hideturtle()
# Створюємо черепашок
red_turtle = turtle.Turtle()
red_turtle.shape("turtle")
red_turtle.color("red")
red_turtle.penup()
red_turtle.goto(-380, 120)
blue_turtle = turtle.Turtle()
blue_turtle.shape("turtle")
blue_turtle.color("blue")
blue_turtle.penup()
blue_turtle.goto(-380, 80)
green_turtle = turtle.Turtle()
green_turtle.shape("turtle")
green_turtle.color("green")
green_turtle.penup()
green_turtle.goto(-380, 40)
orange_turtle = turtle.Turtle()
orange_turtle.shape("turtle")
orange_turtle.color("orange")
orange_turtle.penup()
orange_turtle.goto(-380, 0)
# Запускаємо перегони
race = False
while not race:
red_turtle.forward(random.randint(1, 5))
blue_turtle.forward(random.randint(1, 5))
green_turtle.forward(random.randint(1, 5))
orange_turtle.forward(random.randint(1, 5))
if red_turtle.xcor() >= 350 or blue_turtle.xcor() >= 350 or green_turtle.xcor() >= 350 or orange_turtle.xcor() >= 350:
race = True
# Завершуємо програму
window.mainloop()
import turtle
import random
def draw_rectangle(x, y, width, height, color):
turtle.penup()
turtle.goto(x, y)
turtle.pendown()
turtle.color(color)
turtle.begin_fill()
for _ in range(2):
turtle.forward(width)
turtle.right(90)
turtle.forward(height)
turtle.right(90)
turtle.end_fill()
def draw_flower(x, y, size, petals, color):
turtle.penup()
turtle.goto(x, y - size)
turtle.pendown()
turtle.color(color)
turtle.begin_fill()
for _ in range(petals):
turtle.circle(size, 360 / petals)
turtle.right(360 / petals)
turtle.end_fill()
def create_flower_field():
turtle.speed(0)
# Створення фону
draw_rectangle(-300, 200, 600, 400, "skyblue")
draw_rectangle(-300, 0, 600, 200, "green")
# Малювання квітів
for _ in range(20):
x = random.randint(-280, 280)
y = random.randint(-180, 80)
size = random.randint(6, 20)
petals = random.choice([5, 6, 7, 8, 9])
color = random.choice(["red", "yellow", "pink", "white", "orange"])
draw_flower(x, y, size, petals, color)
turtle.done()
# Виклик функції для створення квіткового поля
create_flower_field()
import random
def draw_rectangle(x, y, width, height, color):
turtle.penup()
turtle.goto(x, y)
turtle.pendown()
turtle.color(color)
turtle.begin_fill()
for _ in range(2):
turtle.forward(width)
turtle.right(90)
turtle.forward(height)
turtle.right(90)
turtle.end_fill()
def draw_flower(x, y, size, petals, color):
turtle.penup()
turtle.goto(x, y - size)
turtle.pendown()
turtle.color(color)
turtle.begin_fill()
for _ in range(petals):
turtle.circle(size, 360 / petals)
turtle.right(360 / petals)
turtle.end_fill()
def create_flower_field():
turtle.speed(0)
# Створення фону
draw_rectangle(-300, 200, 600, 400, "skyblue")
draw_rectangle(-300, 0, 600, 200, "green")
# Малювання квітів
for _ in range(20):
x = random.randint(-280, 280)
y = random.randint(-180, 80)
size = random.randint(6, 20)
petals = random.choice([5, 6, 7, 8, 9])
color = random.choice(["red", "yellow", "pink", "white", "orange"])
draw_flower(x, y, size, petals, color)
turtle.done()
# Виклик функції для створення квіткового поля
create_flower_field()
👍2
https://news.1rj.ru/str/boinker_bot/boinkapp?startapp=liveOpInvite_goldenPiggy_6894a1dd2b90c23cb40cc763_84007
I’ve sent you a Piggy Bank! Unlock its treasure for us!
I’ve sent you a Piggy Bank! Unlock its treasure for us!
Telegram
Boinkers
Jump into meme chaos in this parody game where humor has no limits. Chase the stupid dream of getting to the moon by collecting shit coins and farming the ultimate memecoin: $BOINK to be launched on TON!
https://news.1rj.ru/str/boinker_bot/boinkapp?startapp=dualplay6895a90f9239456237cb25aa_22451
Come spin with me LIVE now!
Come spin with me LIVE now!
Telegram
Boinkers
Jump into meme chaos in this parody game where humor has no limits. Chase the stupid dream of getting to the moon by collecting shit coins and farming the ultimate memecoin: $BOINK to be launched on TON!