Skip to content
This repository was archived by the owner on Feb 13, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

12 changes: 6 additions & 6 deletions Alphaproj.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import time
from construct import createRoad, createTurtles, randomTurtles,createRanking

def createtheWorld():
length = createRoad.create()
t = createTurtles.create()
time.sleep(1)
time_r = randomTurtles.makeItMove(t, length)
createRanking.create(time_r,t)
length = createRoad.create()
t = createTurtles.create()
time.sleep(1)
time_r = randomTurtles.makeItMove(t, length)
createRanking.create(time_r,t)
input()
Binary file modified construct/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified construct/__pycache__/createRoad.cpython-37.pyc
Binary file not shown.
Binary file modified construct/__pycache__/createTurtles.cpython-37.pyc
Binary file not shown.
Binary file modified construct/__pycache__/randomTurtles.cpython-37.pyc
Binary file not shown.
1 change: 0 additions & 1 deletion construct/createRanking.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@ def create(timeindex, tur):
goto (x, -55)
x += 120
write (("%0.2f" % timeindex[2 * i + 1]), move=False, align="center", font=("Arial", 10, "bold"))
#Medals
6 changes: 5 additions & 1 deletion construct/createRoad.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ def create():
goto(-140,140) #Set the default position
n = 0
bgcolor("white")
# onkey(makeshort(n),"U")
# onkey(makelong(n),"O")
# onkey(makemedium(n),"I")
# listen()

screensize(480, 360)

n = int(textinput("Turtles' race","Please input the length of the road"))
n = int(textinput("Noti from Pornhub ", "Please enter the length of the road: "))
n = n + 1
#Draw lines of the road
for step in range(n):
Expand Down
18 changes: 0 additions & 18 deletions construct/randomTurtles.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,6 @@ def makeTutlePos(Tur, n):
X.append (temp[0])
return X

#Sort list of turtle's index and time records
def makeTrueTime_r(time_r):
index = []
time = []
for j in range (4):
time.append (time_r[2 * j + 1])
time.sort (reverse = True)
for i in range (4):
for j in range (i, 4):
if (time[i] == time_r[2 * j + 1]):
#Swap index
temp = time_r[2 * j]
time_r[2 * j] = time_r[2 * i]
time_r[2 * i] = temp
#Swap time
temp = time_r[2 * j + 1]
time_r[2 * j + 1] = time_r[2 * i + 1]
time_r[2 * i + 1] = temp

# Sort list of turtle's index and time records
def makeTrueTime_r(time_r):
Expand Down
32 changes: 0 additions & 32 deletions createUI.py

This file was deleted.

Binary file removed images/login/Background.png
Binary file not shown.
Binary file removed images/login/PlayButton.png
Binary file not shown.
Binary file removed images/login/QuitButton.png
Binary file not shown.
Binary file removed images/reward_medals/1st_Reward.gif
Binary file not shown.