-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
135 lines (135 loc) · 10 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
import random
import copy
destinations =["Oak Island, North Carolina","Honolulu, Hawaii","Charleston, South Carolina","Epcot at Disney World, Orlando, Florida","Bar Harbor, Maine","Raleigh, North Carolina"]
#selects list of restaurants for random selection based on randomly selected destination.
def get_restaraunts_by_location (location):
restaraunts =[""]
oak_island_restaraunts = ["Swain's Seafood and Cut Restaurant","Turtle Island Restaurant","Shagger Jacks","Tranquil Harbour Restaurant & Bar","Little Bit's Grill","Thai By the Sea","Duffer's Pub & Grille","Long Beach Diner","Oak Island Sub Shop","Bob's Dogs"]
honolulu_restaraunts = ["Liliha's Bakery...The Manapua is amazing", "South Shore Market","South Shore Market","The Pig and The Lady","53 By The Sea","Moku Kitchen","Mac 24/7","Kaneohe Pancake House...MMM...Red Velvet Pancakes","Koa Pancake House...Loco Moco's!!","Taco Del Mar...Make sure to get your burritos 'wet!'","Ono Korean BBQ"]
charleston_restaraunts = ["Halls Chophouse...Get ready to lighten your wallet!","Hank's Seafood Restaurant","High Cotton Charleston Restaurant","Butcher & Bee","Poogan's Porch","Magnolias","Taco Boy...Great fish tacos!","Smokey Bones N. Charleston","Rodney Scott's BBQ - Charleston","Red's Ice House...Great 'Shrip Po Boys!'"]
orlando_restaraunts = ["Rose & Crown Dining Room","Tokyo Dining","Choza de Margarita","Yorkshire County Fish Ship","Crepes des Chefs de France","Joy of Tea","Lotus Bloom Cafe","Refreshment Outpost","Biergarten Restaraunt","Tutto Gusto Wine Cellar"]
bar_harbor_restaraunts = ["Geddy's","Galyn's","Side Street Cafe","McKay's Public House","Paddy's Irish Pub & Restaurant","Havana","Bar Harbor Lobster Co....Wicked Good Lobstah!!","Testa's Bar & Grill","Thirsty Whale Tavern","Paddy's food spirits and ale"]
raleigh_restaraunts = ["Lemon Thai Restaraunt...Great Pad Thai!!","Poke Burri...SUSHI BURRITOS!?!?!", "Taza Grille...Hey Boss! Come on Down!","Humble Pie","Gravy...Enough Said","Oak Steakhouse","Snoopy's Hot Dogs & More...Best Hot Dogs this side of New York","Angus Barn...Get ready to lighten your wallet!","Pressed by Spanglish...Great Paninis","Los Tres Magueyes...Best Queso Ever!" ]
if location == "Oak Island, North Carolina":
restaraunts = oak_island_restaraunts
elif location == "Honolulu, Hawaii":
restaraunts = honolulu_restaraunts
elif location == "Charleston, South Carolina":
restaraunts = charleston_restaraunts
elif location == "Epcot at Disney World, Orlando, Florida":
restaraunts = orlando_restaraunts
elif location == "Bar Harbor, Maine":
restaraunts = bar_harbor_restaraunts
elif location == "Raleigh, North Carolina":
restaraunts = raleigh_restaraunts
return restaraunts
#changes the default transportation options based on available transportation at randomly selected locations.
def get_transportation_by_location (location):
modes_of_transportation = ["a Car","a Bus","a Train","an Uber","a Lyft"]
if location == "Oak Island, North Carolina":
modes_of_transportation.append("a Ferry")
modes_of_transportation.append("My car. I'll come pick you up!")
elif location == "Honolulu, Hawaii":
modes_of_transportation[1] = "Da Bus"
modes_of_transportation.append("the Super Ferry")
elif location == "Charleston, South Carolina":
modes_of_transportation.append("a Trolley")
modes_of_transportation.append("a Horse and Buggy")
elif location == "Epcot at Disney World, Orlando, Florida":
modes_of_transportation.append("the Tram")
modes_of_transportation.append("the Skyliner")
elif location == "Bar Harbor, Maine":
modes_of_transportation.append("a Bicycle")
modes_of_transportation.append("an RV")
elif location == "Raleigh, North Carolina":
modes_of_transportation.append("a Byrd Scooter")
modes_of_transportation.append("a Trolley Pub Car")
return modes_of_transportation
#selects list of entertainment options based on randomly selected destination.
def get_entertainment_by_location (location):
entertainment =[""]
oak_island_entertainment = ["Go Fishing on the Pier","Fly a Kite","Go Flounder Gigging at Night","Read a Book on the Beach","Play Beach Volleyball","Play Miniature Golf","Go to the Aquarium","Swim in the Waves"]
honolulu_entertainment = ["Hike Diamondhead","Hike the Stairway to Heaven","Golf at Turtle Bay","Go Cliff Jumping at China Walls","Take Surf Lessons at Waikiki Beach","Hike Kokohead","Go on a Whale Watching Tour","Go on a Sunset Cruise"]
charleston_entertainment = ["Tour Fort Sumter","Tour the USS Yorktown","Go on a Haunted Carriage Tour","Visit Bee City Zoo","Kayak at Sullivan's Island","Go to the Water Park","Visit the Battery","Go to the Movies","Visit Boone Hall Plantation"]
orlando_entertainment = ["Ride Test Track","Ride Mission SPACE","Ride Soarin' Around the World","Ride Frozen Ever After","Ride The Seas with Nemo and Friends","Ride Guardians of the Galaxy"]
bar_harbor_entertainment = ["Go Blueberry Picking","Go Whale Watching","Go on a Lobster Fishing tour","Hike in Acadia National Park","Charter a Fishing Vessel","Go Kayaking","Go on a Sailboat Tour"]
raleigh_entertainment = ["Go Ice Skating","Race go-carts","Visit the Art Museum","Go to a Hurricanes Game","Go to an NC State Game","Go to a Durham Bulls Game","BMX at Lion's Park","Hike at Fall's Lake","Get your Jump on at Defy Gravity","Kayak Down the Nuese River","Bike the Raleigh Greenway","Go to Boxcar Bar and Arcade"]
if location == "Oak Island, North Carolina":
entertainment = oak_island_entertainment
elif location == "Honolulu, Hawaii":
entertainment = honolulu_entertainment
elif location == "Charleston, South Carolina":
entertainment = charleston_entertainment
elif location == "Epcot at Disney World, Orlando, Florida":
entertainment = orlando_entertainment
elif location == "Bar Harbor, Maine":
entertainment = bar_harbor_entertainment
elif location == "Raleigh, North Carolina":
entertainment = raleigh_entertainment
return entertainment
#randomly selects item from a list
def get_random_selection (some_list):
random_selection = random.choice(some_list)
return random_selection
#lets user choose y/n based on the randomly selected options.
def get_user_choice(some_list, category_name):
user_choice = "n"
backup_list = some_list.copy()
while user_choice.lower() == "n":
random_selection = get_random_selection(some_list)
user_choice = input(f"Your randomly selected {category_name} is '{random_selection}'. Do you like this choice? Enter y/n :")
if user_choice.lower() == 'n' and len(some_list) > 1:
print("Sorry, Let's try this again...")
some_list.remove(random_selection)
elif user_choice.lower() == 'n' and len(some_list) == 1:
print("My, my, my...You are a picky one. Thats all the choices. Let's try this again.")
some_list = backup_list
input("Press 'Enter' to continue.")
else:
print(f"Great Choice! You chose '{random_selection}'.")
return random_selection
#confirms user choices witht he option to reselect
def confirm_user_choices (choice, category_name, some_list):
user_input = "n"
user_choice = choice
while user_input.lower() =="n":
user_input = input(f"Time to confirm your {category_name}. You a choose {choice}. Enter 'y' to confirm or 'n' to randomly reselect a {category_name} :")
if user_input.lower() =="n":
user_choice = get_user_choice(some_list, category_name)
input(f"{user_choice} confirmed. Press 'Enter' to continue")
user_input = 'y'
else:
print("Selection confirmed.")
return user_choice
#gives user option to display trip choices
def display_trip_choices (destination, restaurant, transportation, entertainment):
user_input = input("Congratulations! Your day trip booking is complete. Would you like to see what your day will look like? Enter y/n :")
if user_input.lower() != 'n':
input(f"""You have chosen to travel to '{destination}'.
You have chosen to dine at '{restaurant}'.
You have chosen to get around in/on '{transportation}'.
You have chosen to '{entertainment}'.
Have a great time!!
Press 'Enter' to exit.""")
else:
input("Press 'Enter' to exit.")
final_destination = get_user_choice (destinations, "Destination")
restaraunts = get_restaraunts_by_location (final_destination)
final_restaurant = get_user_choice (restaraunts, "Restaurant")
modes_of_transportation = get_transportation_by_location (final_destination)
final_mode_of_transportation = get_user_choice (modes_of_transportation, "Mode of Transportation")
forms_of_entertainment = get_entertainment_by_location (final_destination)
final_form_of_entertainment = get_user_choice (forms_of_entertainment, "Form of Entertainment")
confirmed_destination = confirm_user_choices(final_destination, "Destination", destinations)
if final_destination != confirmed_destination:
input("Your destination has changed! We need to rebook the rest of your trip. Press 'Enter' to continue")
restaraunts = get_restaraunts_by_location (final_destination)
final_restaurant = get_user_choice (restaraunts, "Restaurant")
modes_of_transportation = get_transportation_by_location (final_destination)
final_mode_of_transportation = get_user_choice (modes_of_transportation, "Mode of Transportation")
forms_of_entertainment = get_entertainment_by_location (final_destination)
final_form_of_entertainment = get_user_choice (forms_of_entertainment, "Form of Entertainment")
confirmed_restaurant = confirm_user_choices(final_restaurant, "Restaurant", restaraunts)
confirmed_mode_of_transportation = confirm_user_choices(final_mode_of_transportation, "Mode of Transportation", modes_of_transportation)
confirmed_form_of_entertainment = confirm_user_choices(final_form_of_entertainment,"Form of Entertainment", forms_of_entertainment)
display_trip_choices (confirmed_destination, confirmed_restaurant, confirmed_mode_of_transportation, confirmed_form_of_entertainment)