Hi, can you help me add these requirements in my Turtle python program. The program is supposed to run an Olympics skating game. The program is below the requirements. Thanks
Requirements
-Your race will be random generated so each time there is a possibility that a different winner.
-Have a countdown of “READY” “SET” “GO” appear on the screen and then the turtles take off.
-Have the program tell the winner[s].
-Award Medals.
-User may guess who will win.
-Allow the user to continue to do the game over and over again until they do not want to do it anymore.
-When the user choose to exit - Display a new screen and recap the events.
-Make sure you have a information screen for user explaining the Game.
-Make your program screens look nice.
-Menu.
Program:
#!/bin/python3
from turtle import *
from random import randint
speed(0)
penup()
goto(-140, 140)
for step in range(15):
write(step, align='center')
right(90)
for num in range(8):
penup()
forward(10)
pendown()
forward(10)
penup()
backward(160)
left(90)
forward(20)
ada = Turtle()
ada.color('red')
ada.shape('turtle')
ada.penup()
ada.goto(-160, 100)
ada.pendown()
for turn in range(10):
ada.right(36)
bob = Turtle()
bob.color('blue')
bob.shape('turtle')
bob.penup()
bob.goto(-160, 70)
bob.pendown()
for turn in range(72):
bob.left(5)
ivy = Turtle()
ivy.shape('turtle')
ivy.color('green')
ivy.penup()
ivy.goto(-160, 40)
ivy.pendown()
for turn in range(60):
ivy.right(6)
jim = Turtle()
jim.shape('turtle')
jim.color('orange')
jim.penup()
jim.goto(-160, 10)
jim.pendown()
for turn in range(30):
jim.left(12)
for turn in range(100):
ada.forward(randint(1, 5))
bob.forward(randint(1, 5))
ivy.forward(randint(1, 5))
jim.forward(randint(1, 5))
The logic for above specified requirements wil be folowed as follows:
1> set a Random Countdown for "READY" "SET" "GO"
use the follwing code for it:
import time
def countdown(n) :
print('READY SET GO...')
while n > 0:
n = n - 1
countdown(50)
above function will set the countdown for 50s and it will be set because of time package has been imported.
2> For awrad medals
set red to max value then green little average and then blue to lower
compare the last /end value with predefined value and print the winner!!
3>Use loop do while to run the program till user wants it.
4> For new screen using the libraries for new screen and for event use the onclick() that will returns the event that had occured.
5>For making screen interactive use window functions and set background color using bgcolor().
Hi, can you help me add these requirements in my Turtle python program. The program is...
Please help with this python turtle problem using the
functions provided.
Python Turtle Write a program using the turtle module to draw the face of a clock that looks like the image below. You will need to use the turtle module for this exercise as well as the bgcolor), shape(), color), penup), right(), forward(), pendown(), and stamp() functions. The code below can be removed or changed as needed. import turtle t turtle.Turtle0 t.forward(75)
Write a program called draw_shapes.py.
In your program,
Create a block header with:
your name
the date
a short description of what the program does:
Assignment 5: Draw shapes using turtle
Import the turtle module.
Create a window and screen (canvas) where your turtle will
draw. Make the window 400 pixels wide x 400 pixels high and give it
an indigo background and a title of "Shapes". Use this code to
create a window object:
# a place for the...
Hi,
Can you help me with Python using Tkinter? Please read all
requirements and could you pls do it as simple as possible!
Aa- AaBbC AaBbCel AalBbCel AaßbCcD AaBbC AaBbCel AaBbCcl AaBbCcl Pind - Replace b Select IU-b x, x A A- Heading 1 1 Heading 3 1 Normal Subtde Tle 1 No Spac Subtle Em Emphasis Fon Paragraph Styles Editng Perform the Following Tasks Use Tkinter Graphics Design a simple graphical program Task 1: as indicated below: nts put...
******Java Programming Hi guys, I really need you help. I created a code for my java course, but it keep giving me error messages. Majority of my code is fine but some keep display error on my console. I was hoping someone could pin points the problem. .There are three classes with the testCenter class being the main class. In the following is the assignment, and the bottom is my code. Please help! Assignment: Concepts: GUI User Design Graphics Deployment...
Can you add code comments where required throughout this Python Program, Guess My Number Program, and describe this program as if you were presenting it to the class. What it does and everything step by step. import random def menu(): #function for getting the user input on what he wants to do print("\n\n1. You guess the number\n2. You type a number and see if the computer can guess it\n3. Exit") while True: #using try-except for the choice will handle the...
can someone help me fix my jeopardy dice game I am having a hard time figuring out what i am doing wrong #include #include using namespace std; //this function makes a number between 1 and 6 come out just like a dice int rollDie() { return (rand() % 6+1); } //this function asks the user with a printed statement if they want to roll the dice and gives instructions for yes and no (y/n) void askYoNs(){ cout<<"Do you want to...
JAVA TIC TAC TOE - please help me correct my code Write a program that will allow two players to play a game of TIC TAC TOE. When the program starts, it will display a tic tac toe board as below | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 The program will assign X to Player 1, and O to Player The program will ask Player 1, to...
This is a Clock program in Java. Can you fix my Java program error, and add function to display current time currently? import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.util.Date; import javax.swing.JPanel; import javax.swing.WindowConstants; public class Clock extends javax.swing.JFrame { public int hour; public int min; public int sec; ClockDial cd; public Clock() { setSize(510, 530); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); cd = new ClockDial(this); getContentPane().add(cd); Date curr = new Date(); String time = curr.toString(); hour = Integer.parseInt(time.substring(11, 13)); min = Integer.parseInt(time.substring(14, 16)); sec...
Can figure out how get my program to keep track of a total score, here is my code so far in python 3.6.6 import math import random import turtle def target(): """Turtle drawing the target""" t = turtle.Turtle() wn = turtle.Screen() wn.bgcolor("black") t.hideturtle() t.speed(0) #most outside circle worth 10 points t.setposition(0,-275) t.color("grey") t.begin_fill() t.circle(275) t.end_fill() #2nd most outter circle worth 20 points t.penup() t.setposition(0,-200) t.pendown() t.color("red") t.begin_fill() t.circle(200) t.end_fill() #3rd most outter circle worth 30 points...
Python debug. (Registration error)
Hi, can you help me debug the error code, and how can I fix it?
Thank you very much!
4 import sqlite: 5 conn sqlite3.connect("OS_Employee.db") 7 withconn: 8 curconn.cursor() try: 10 # Take user input for Employee-ID. Error checks it. Makes sure it's not taken. EmployeeID = input ("Please enter a employee ID: ") First_Nameinput("Please enter the employee's first name: ") Last Nameinput("Please enter the employee's last name: ") Email-input ("Please enter the employee's email: ")...