Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

import time

import datetime
import random

stage = 0

def blank():
print ("")
print ("-" * 60)
print ("")

possible_destinations = ("Sydney", "sydney", "Newyork", "newyork", "New


york", "Newyork", "New York", "NewYork", "Newyorkcity", "newyorkcity",
"New york city", "Newyorkcity", "New York City", "NewYorkCity", "beijing",
"Beijing", "BeiJing", "bei jing", "Be Jing", "london", "London", "tokyo",
"Tokyo")

destination_sydney = ("Sydney", "sydney")


destination_newyork = ("Newyork", "newyork", "New york", "Newyork", "New
York", "NewYork", "Newyorkcity", "newyorkcity", "New york city",
"Newyorkcity", "New York City", "NewYorkCity")
destination_beijing = ("beijing", "Beijing", "BeiJing", "bei jing", "Be
Jing")
destination_london = ("london", "London")
destination_tokyo = ("tokyo", "Tokyo")

possible_planes = ("X-15", "x-15", "x15", "X15", "SR-71 Blackbird",


"Blackbird", "blackbird", "sr-71 blackbird", "Airbus A380", "a380",
"A380", "airbus a380", "Airbus", "airbus", "concorde", "Concorde",
"Eclipse 500", "eclipse 500", "Eclipse", "eclipse", "eclipse500",
"Eclipse500", "SR-71", "sr-71", "sr71", "SR71")

plane_x15 = ("X-15", "x-15", "x15", "X15")


plane_blackbird = ("SR-71 Blackbird", "Blackbird", "blackbird", "sr-71
blackbird", "SR-71", "sr-71", "sr71", "SR71")
plane_airbus = ("Airbus A380", "a380", "A380", "airbus a380", "Airbus",
"airbus")
plane_concorde = ("concorde", "Concorde")
plane_eclipse = ("Eclipse 500", "eclipse 500", "Eclipse", "eclipse",
"eclipse500", "Eclipse500")
confirm_yes = ("yes", "Yes", "YES")
confirm_no = ("no", "No", "NO")

while True:
while True:
blank()
name_real = input ("What's your real name?: ")
print ("")
name_sur = input("What's your surname?: ")
name = ("{} {}" .format(name_real, name_sur))
name_count = len(name)

if name_count > 35:


print ("sorry, your name is too long")
else:
break

print ("")
name = name.upper()
confirmation = input("Is '{}' your name?: " .format(name))

while True:
if confirmation in confirm_yes:
break
elif confirmation in confirm_no:
break
else:
confirmation = input("yes or no only please: ")

if confirmation in confirm_yes:
break
else:
blank()
currentDT = datetime.datetime.now()
DT_hour = currentDT.hour

blank()
if DT_hour < 12:
print ("Good morning {}, welcome to AKARAWIN AIR flight radar."
.format(name))
else:
print ("Good afternoon {}, welcome to AKARAWIN AIR flight radar."
.format(name))

blank()
print("Which location do you want to go to?")
print("")
print("Sydney, Australia:")
print("NewYork City, USA:")
print("BeiJing, China:")
print("London, England:")
print("Tokyo, Japan:")
blank()

while stage != 1:
destination = input("Please enter your destination: ")

while True:
if destination in possible_destinations:
break
else:
blank
destination = input("Please re-enter your destination: ")

print ("")
if destination in destination_sydney:
destination = "Sydney"
travel_distance = 7532
flight_direction = "east"
print ("Sydney is the state capital of New South Wales and the most
populous city in Australia and Oceania. Located on Australia's east coast,
the metropolis surrounds Port Jackson and extends about 70 km on its
periphery towards the Blue Mountains to the west, Hawkesbury to the north,
the Royal National Park to the south and Macarthur to the south-west.
Sydney is made up of 658 suburbs, 40 local government areas and 15
contiguous regions.")
print ("")
print ("You can visit the Sydney Opera House. Its unique use of a
series of gleaming white sail-shaped shells as its roof structure makes it
one of the most-photographed buildings in the world.")
elif destination in destination_newyork:
destination = "New York City"
travel_distance = 13923
flight_direction = "west"
print ("The City of New York, usually called either New York City or
simply New York, is the most populous city in the United States and in the
U.S. New York is also the most densely populated major city in the United
States. Located at the southern tip of the state of New York, the city is
the center of the New York metropolitan area, the largest metropolitan
area in the world by urban landmass and one of the world's most populous
megacities. A global power city, New York City has been described as the
cultural, financial, and media capital of the world, and exerts a
significant impact upon commerce, entertainment, research, technology,
education, politics, tourism, art, fashion, and sports. The city's fast
pace has inspired the term New York minute.")
print ("")
print ("You can visit the Statue of Liberty. The Statue of Liberty is a
colossal neoclassical sculpture on Liberty Island in New York Harbor in
New York, in the United States. The copper statue, a gift from the people
of France to the people of the United States, was designed by French
sculptor Frédéric Auguste Bartholdi and its metal framework was built by
Gustave Eiffel.")
elif destination in destination_beijing:
destination = "BeiJing"
travel_distance = 3294
flight_direction = "north"
print ("Beijing, formerly romanized as Peking, is the capital of the
People's Republic of China, the world's third most populous city proper,
and most populous capital city. The city, located in northern China, is
governed as a municipality under the direct administration of central
government with 16 urban, suburban, and rural districts. Beijing
Municipality is surrounded by Hebei Province with the exception of
neighboring Tianjin Municipality to the southeast; together the three
divisions form the Jingjinji metropolitan region and the national capital
region of China. Beijing is an important world capital and global power
city, and one of the world's leading centers for politics, economy and
business, finance, education, culture, innovation and technology,
architecture, language, and diplomacy.")
print ("")
print ("You can visit the Great Wall of China. The frontier walls built
by different dynasties have multiple courses. Collectively, they stretch
from Dandong in the east to Lop Lake in the west, from present-day
Sino-Russian border in the north to Qinghai in the south; along an arc
that roughly delineates the edge of Mongolian steppe.")
elif destination in destination_london:
destination = "London"
travel_distance = 9526
flight_direction = "west"
print ("London is the capital and largest city of both England and the
United Kingdom. Standing on the River Thames in the south-east of England,
at the head of its 80 km estuary leading to the North Sea, London has been
a major settlement for two millennia. London is considered to be one of
the world's most important global cities and has been termed the world's
most powerful, most desirable, most influential, most visited, most
expensive, innovative, sustainable, most investment friendly, most popular
for work, and the most vegetarian friendly city in the world. London
exerts a considerable impact upon the arts, commerce, education,
entertainment, fashion, finance, healthcare, media, professional services,
research and development, tourism and transportation.")
print ("")
print ("You can visit Big Ben. Big Ben is the nickname for the Great
Bell of the clock at the north end of the Palace of Westminster in London
and is usually extended to refer to both the clock and the clock tower.
When completed in 1859, its clock was the largest and most accurate
four-faced striking and chiming clock in the world.")
else:
destination = "Tokyo"
travel_distance = 4606
flight_direction = "east"
print ("Tokyo, officially Tokyo Metropolis, one of the 47 prefectures
of Japan, has served as the Japanese capital since 1869. As of 2018, the
Greater Tokyo Area ranked as the most populous metropolitan area in the
world. Tokyo ranks first in the Global Economic Power Index and third in
the Global Cities Index. As of 2018 Tokyo ranked as the 2nd-most
expensive city for expatriates, according to the Mercer consulting firm.")
print ("")
print ("you can visit the Tokyo Tower. Tokyo Tower is a communications
and observation tower in the Shiba-koen district of Minato, Tokyo, Japan.
At 332.9 metres, it is the second-tallest structure in Japan. The
structure is an Eiffel Tower-inspired lattice tower that is painted white
and international orange to comply with air safety regulations.")

print ("")
print ("")
print ("Your destination, {}, is {} km from Bangkok."
.format(destination, travel_distance))
print ("You will be flying {} for this journey."
.format(flight_direction))
print("")
confirmation = input("Do you wish to change your destination?: ")

while True:
if confirmation in confirm_yes:
blank()
break
elif confirmation in confirm_no:
blank()
stage = stage + 1
break
else:
confirmation = input("'yes' or 'no' only please: ")

print ("Which aircraft do you want to fly on?")


print ("")
print ("X-15")
print ("SR-71 Blackbird")
print ("Airbus A380")
print ("Concorde")
print ("Eclipse 500")
blank()

while stage != 2:
plane = input("Please enter your selection: ")
while True:
if plane in possible_planes:
break
else:
plane = input("Please re-enter your selection: ")

print ("")
if plane in plane_x15:
plane = "X-15"
speed = 7350
print ("")
print ("The North American X-15 rocket plane of the early 1960s was the
first manned hypersonic aircraft capable of suborbital spaceflight. They
were used to test and evaluate new technologies and aerodynamic
concepts.")
elif plane in plane_blackbird:
plane = "SR-71 Blackbird"
speed = 3675
print ("")
print ("Lockheed SR-71 was an advanced US long-range strategic
reconnaissance aircraft with the ability to fly at Mach 3. The SR-71 was
designed to reduce radar visibility and served in the USAF from 1964 to
1998, and in NASA between 1971 and 1999.")
elif plane in plane_airbus:
plane = "Airbus A380"
speed = 1176
print ("The Airbus A380 is the world's largest passenger airliner, a
wide-body aircraft manufactured by Airbus. The full-length double-deck
aircraft has a typical seating capacity of 525, though it is certified for
up to 853 passengers. It is powered by four Engine Alliance GP7200 or
Rolls-Royce Trent 900 turbofans providing a range of 14,800 km.")
elif plane in plane_concorde:
plane = "Concorde"
speed = 2474
print ("")
print ("The Concorde is a French-British turbojet-powered supersonic
passenger airliner that operated from 1976 until 2003. It had a maximum
speed over twice the speed of sound at Mach 2.04 (2,180 km/h at cruise
altitude), with seating for 92 to 128 passengers. ")
else:
plane = "Eclipse 500"
speed = 685
print ("")
print ("The Eclipse 500 is a small six-seat American business jet
aircraft originally manufactured by Eclipse Aviation and later upgraded
and sold by Eclipse Aerospace. The Eclipse 500 became the first of a new
class of Very Light Jets when it was delivered in late 2006.")

blank()
print ("Your chosen plane is the {}." .format(plane))
print ("")
confirmation = input("Do you wish to change your aircraft?: ")

while True:
if confirmation in confirm_yes:
blank()
break
elif confirmation in confirm_no:
blank()
stage = stage + 1
break
else:
confirmation = input("'yes' or 'no' only please: ")

if flight_direction == "east":
speed = speed - 296
elif flight_direction == "west":
speed = speed + 296

time_hour = int(travel_distance / speed)


time_minute = int((travel_distance % speed) * 60 / speed)
if time_hour > 1:
if time_minute > 1:
print ("The journey will take {} hours and {} minutes"
.format(time_hour, time_minute))
else:
print ("The journey will take {} hours and {} minute"
.format(time_hour, time_minute))
else:
if time_minute > 1:
print ("The journey will take {} hour and {} minutes"
.format(time_hour, time_minute))
else:
print ("The journey will take {} hour and {} minute" .format(time_hour,
time_minute))

print ("")
ticket = input("Please press enter to recieve your ticket.")

name_count = 35 - name_count
if name_count == 34:
name = ("{} " .format(name))
elif name_count == 33:
name = ("{} " .format(name))
elif name_count == 32:
name = ("{} " .format(name))
elif name_count == 31:
name = ("{} " .format(name))
elif name_count == 30:
name = ("{} " .format(name))
elif name_count == 29:
name = ("{} " .format(name))
elif name_count == 28:
name = ("{} " .format(name))
elif name_count == 27:
name = ("{} " .format(name))
elif name_count == 26:
name = ("{} " .format(name))
elif name_count == 25:
name = ("{} " .format(name))
elif name_count == 24:
name = ("{} " .format(name))
elif name_count == 23:
name = ("{} " .format(name))
elif name_count == 22:
name = ("{} " .format(name))
elif name_count == 21:
name = ("{} " .format(name))
elif name_count == 20:
name = ("{} " .format(name))
elif name_count == 19:
name = ("{} " .format(name))
elif name_count == 18:
name = ("{} " .format(name))
elif name_count == 17:
name = ("{} " .format(name))
elif name_count == 16:
name = ("{} " .format(name))
elif name_count == 15:
name = ("{} " .format(name))
elif name_count == 14:
name = ("{} " .format(name))
elif name_count == 13:
name = ("{} " .format(name))
elif name_count == 12:
name = ("{} " .format(name))
elif name_count == 11:
name = ("{} " .format(name))
elif name_count == 10:
name = ("{} " .format(name))
elif name_count == 9:
name = ("{} " .format(name))
elif name_count == 8:
name = ("{} " .format(name))
elif name_count == 7:
name = ("{} " .format(name))
elif name_count == 6:
name = ("{} " .format(name))
elif name_count == 5:
name = ("{} " .format(name))
elif name_count == 4:
name = ("{} " .format(name))
elif name_count == 3:
name = ("{} " .format(name))
elif name_count == 2:
name = ("{} " .format(name))
elif name_count == 1:
name = ("{} " .format(name))
elif name_count == 0:
name = ("{}" .format(name))
elif name_count == 35:
name = ("{} " .format(name))
elif name_count == 35:
name = ("{} " .format(name))

if destination in destination_sydney:
destination = "SYDNEY, AUSTRALIA"
elif destination in destination_newyork:
destination = "NEWYORK CITY, USA"
elif destination in destination_beijing:
destination = "BEIJING, CHINA "
elif destination in destination_london:
destination = "LONDON, ENGLAND "
else:
destination = "TOKYO, JAPAN "

if plane in plane_x15:
plane = "X-15 "
elif plane in plane_blackbird:
plane = "SR-71 BLANKBIRD"
elif plane in plane_airbus:
plane = "AIRBUS A380 "
elif plane in plane_concorde:
plane = "CONCORDE "
else:
plane = "ECLIPSE 500 "

possible_letter = ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K")
random_letter = random.choice(possible_letter)
random_number1 = str(random.randint(0,3))
random_number2 = str(random.randint(0,9))
seat_number = ("{}{}{}" .format(random_number1, random_number2,
random_letter))

currentDT = datetime.datetime.now()
DT_month = currentDT.month
DT_day = currentDT.day

if DT_month < 10:


DT_month = str(DT_month)
DT_month = ("0" + DT_month)
if DT_day < 10:
DT_day = str(DT_day)
DT_day = ("0" + DT_day)

currentDT = ("{}-{}-{} {}:{}" .format(currentDT.year, DT_month, DT_day,


currentDT.hour, currentDT.minute))

print("")
print("")
print (" ---------------------------------------------------------------
")
time.sleep(1)
print ("
/=================================================================\ ")
time.sleep(1)
print ("|
|")
time.sleep(1)
print ("| NAME: /‾‾‾‾‾‾‾‾‾‾‾‾‾\
|")
time.sleep(1)
print ("| {} | __!__ | |" .format(name))
print ("| FROM: | _____(_)_____ |
|")
time.sleep(1)
print ("| BANGKOK, THAILAND | ! ! ! |
|")
time.sleep(1)
print ("| TO: \_____________/
|")
time.sleep(1)
print ("| {} AKARAWIN AIR |"
.format(destination))
time.sleep(1)
print ("| DATE & TIME:
|")
time.sleep(1)
print ("| {} SEAT NUMBER: |"
.format(currentDT))
time.sleep(1)
print ("| FLIGHT: {}
|" .format(seat_number))
time.sleep(1)
print ("| {} |"
.format(plane))
time.sleep(1)
print ("|
|")
time.sleep(1)
print ("| | ||█|██|||█||████||||██|||||██|█|█||█|||██|██|███|█|██|██|
|")
time.sleep(1)
print ("| | ||█|██|||█||████||||██|||||██|█|█||█|||██|██|███|█|██|██|
|")
time.sleep(1)
print ("| | ||█|██|||█||████||||██|||||██|█|█||█|||██|██|███|█|██|██|
|")
time.sleep(1)
print ("
\=================================================================/ ")
time.sleep(1)
print (" ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
")

print ("")
print ("")

ticket = input("Please press enter to board your flight.")

wipescreen = 0
while wipescreen != 100:
print ("")
wipescreen = wipescreen + 1

if plane == "X-15 ":


speed = 0.05
print (" /\ ")
time.sleep(speed)
print (" / \ ")
time.sleep(speed)
print (" | | ")
time.sleep(speed)
print (" | /\ | ")
time.sleep(speed)
print (" | || | ")
time.sleep(speed)
print (" | \/ | ")
time.sleep(speed)
print (" | | ")
time.sleep(speed)
print (" | | ")
time.sleep(speed)
print (" | | ")
time.sleep(speed)
print (" | | ")
time.sleep(speed)
print (" /| |\ ")
time.sleep(speed)
print (" / | | \ ")
time.sleep(speed)
print (" / | | \ ")
time.sleep(speed)
print (" /___| |___\ ")
time.sleep(speed)
print (" | /\ | ")
time.sleep(speed)
print (" /| || |\ ")
time.sleep(speed)
print (" |/ | || | \| ")
time.sleep(speed)
print (" / _| || |_ \ ")
time.sleep(speed)
print (" |/ =||= \| ")
elif plane == "SR-71 BLANKBIRD":
speed = 0.1
print (" ^ ")
time.sleep(speed)
print (" / \ ")
time.sleep(speed)
print (" / /V\ \ ")
time.sleep(speed)
print (" / \|/ \ ")
time.sleep(speed)
print (" / // v \\ \ ")
time.sleep(speed)
print (" \ / ")
time.sleep(speed)
print (" | : |")
time.sleep(speed)
print (" | : |")
time.sleep(speed)
print (" | : |")
time.sleep(speed)
print (" | : |")
time.sleep(speed)
print (" | : |")
time.sleep(speed)
print (" | : |")
time.sleep(speed)
print (" ^ | : | ^")
time.sleep(speed)
print (" / \ / ^ \ / \ ")
time.sleep(speed)
print (" / ^ \ / \ / ^ \ ")
time.sleep(speed)
print (" (/ \)/ ^ \(/ \) ")
time.sleep(speed)
print (" | | | / | \ | | | ")
time.sleep(speed)
print (" /| | | | | | | | |\ ")
time.sleep(speed)
print (" / | | | | | | | | | \ ")
time.sleep(speed)
print (" / | | | | | | | \ ")
time.sleep(speed)
print (" /_____( V )______\ v /______( V )_____\ \ ")
time.sleep(speed)
print (" \ / ")
time.sleep(speed)
print (" \ / ")
time.sleep(speed)
print (" v ")
elif plane =="AIRBUS A380 ":
speed = 0.5
print (" /||\ ")
time.sleep(speed)
print (" / -- \ ")
time.sleep(speed)
print (" / __ \ ")
time.sleep(speed)
print (" | :: | ")
time.sleep(speed)
print (" | __ | ")
time.sleep(speed)
print (" | / \ | ")
time.sleep(speed)
print (" _________________ _|_ | | | | _|_ ____________________
")
time.sleep(speed)
print (" /------------------/ \-| |-/ \--------------------\
")
time.sleep(speed)
print (" / | | | | | | |
")
time.sleep(speed)
print (" | : | | | :: | | | : |
")
time.sleep(speed)
print (" |_______________ ___ \ / | | \ / ___ _______________|
")
time.sleep(speed)
print (" \_____________|___|__| |__|______|__| |__|___|_____________/
")
time.sleep(speed)
print (" | | | || | | | ")
time.sleep(speed)
print (" | || | ")
time.sleep(speed)
print (" | | ")
time.sleep(speed)
print (" | | ")
time.sleep(speed)
print (" | | ")
time.sleep(speed)
print (" \ / ")
time.sleep(speed)
print (" \ / ")
time.sleep(speed)
print (" _____/ || \_____ ")
time.sleep(speed)
print (" / : \||/ : \ ")
time.sleep(speed)
print (" | ____ || ____ | ")
time.sleep(speed)
print (" \___|__||__|___/ ")
elif plane =="CONCORDE ":
speed = 0.2
print (" |")
time.sleep(speed)
print (" |")
time.sleep(speed)
print (" / \ ")
time.sleep(speed)
print (" / \ ")
time.sleep(speed)
print (" | --- |")
time.sleep(speed)
print (" | |")
time.sleep(speed)
print (" | |")
time.sleep(speed)
print (" | |")
time.sleep(speed)
print (" | |")
time.sleep(speed)
print (" | |")
time.sleep(speed)
print (" .| |.")
time.sleep(speed)
print (" || ||")
time.sleep(speed)
print (" / | | \ ")
time.sleep(speed)
print (" | | | |")
time.sleep(speed)
print (" / | | \ ")
time.sleep(speed)
print (" | | | |")
time.sleep(speed)
print (" / | | \ ")
time.sleep(speed)
print (" / | | \ ")
time.sleep(speed)
print (" / | | \ ")
time.sleep(speed)
print (" / | | \ ")
time.sleep(speed)
print (" / :: | | :: \ ")
time.sleep(speed)
print (" / | | | \ ")
time.sleep(speed)
print (" / | | | \ ")
time.sleep(speed)
print (" / | | | \ ")
time.sleep(speed)
print (" | _______ | | | _______ | ")
time.sleep(speed)
print (" |______|| |=| ||____| | |____|| |=| ||______| ")
time.sleep(speed)
print (" V V | | | V V")
time.sleep(speed)
print (" | ||| |")
time.sleep(speed)
print (" \ /")
time.sleep(speed)
print (" \ / ")
time.sleep(speed)
print (" v ")
else:
speed = 0.75
print (" /\ ")
time.sleep(speed)
print (" |^^| ")
time.sleep(speed)
print (" |{}| ")
time.sleep(speed)
print (" _______________/~~\________________ ")
time.sleep(speed)
print (" / | | \ ")
time.sleep(speed)
print ("`========--------. .---------========' ")
time.sleep(speed)
print (" | | ")
time.sleep(speed)
print (" | | ")
time.sleep(speed)
print (" | | ")
time.sleep(speed)
print (" | | ")
time.sleep(speed)
print (" |||| ")
time.sleep(speed)
print (" ,----||----, ")
time.sleep(speed)
print (" '-----<>-----' ")

wipeanimation = 0
while wipeanimation != 40:
print ("")
wipeanimation = wipeanimation + 1
time.sleep(speed)

print ("████░██░██░░▄███▄░░██▄░██░██░▄██")
time.sleep(speed)
print ("░██░░██▄██░██▀░▀██░███▄██░████▀░")
time.sleep(speed)
print ("░██░░██▀██░███████░██▀███░████▄░")
time.sleep(speed)
print ("░██░░██░██░██░░░██░██░░██░██░▀██")
time.sleep(speed)
print ("")
time.sleep(speed)
print ("██▄░░▄██░░▄███▄░░██░░██░░")
time.sleep(speed)
print ("░▀████▀░░██▀░▀██░██░░██░░")
time.sleep(speed)
print ("░░░██░░░░██▄░▄██░██░░██░░")
time.sleep(speed)
print ("░░░██░░░░░▀███▀░░▀████▀░░")

You might also like