Skip to content

Commit 5725551

Browse files
committed
Add LINE constant instead of print with dashes
1 parent 97fb996 commit 5725551

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

constants.py

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
STOCK_COSTS = {
6666
# id : [name, portions, cost]
6767
'bun': ['Pack of Hotdog Buns', 6, 1],
68-
'sausage': ['Pack of Hotdog Sausage', 8, 2],
68+
'sausage': ['Pack of Sausages', 8, 2],
6969
'onion': ['Onion', 10, 1],
7070
'sauce': ['Jar of Special Sauce', 20, 5]
7171
}
@@ -77,9 +77,11 @@
7777
'sauce'
7878
]
7979

80-
BACKGROUND_STORY = f"""------------------------------------
81-
{cyan('Background')}
82-
------------------------------------
80+
LINE = """---------------------------------------\
81+
--------------------------------------"""
82+
83+
BACKGROUND_STORY = f"""{cyan('Background')}
84+
{LINE}
8385
8486
You have hit some really hard times lately and nearly lost everything. Your
8587
down to your last £{STARTING_CASH}. Luckily your friend has told you about
@@ -92,7 +94,7 @@
9294
things around to get you started...."""
9395

9496
CREDITS = f"""{cyan('Credits:')}
95-
------------------------------------
97+
{LINE}
9698
{"Code by:":<20}{gold("Warwick Hart"):<40}
9799
{"Inspired by:":<20}{gold("Lemonade Stand by Bob Jamison"):<40}
98100
@@ -112,32 +114,32 @@
112114
************************************
113115
114116
{cyan('MAIN MENU')}
115-
------------------------------------
116-
Can you prove that you are able to take a small hotdog stand and turn it into \
117+
{LINE}
118+
Can you prove that you are able to take a small hotdog stand and turn it into
117119
a great hotdog empire?!
118120
119121
{cyan('Choose from the following options:')}
120-
------------------------------------
122+
{LINE}
121123
1. New Game
122124
2. Retrieve a previous game
123125
3. View leaderboard
124126
4. Credits"""
125127

126128
PURCHASE_STOCK_OPTIONS = f"""
127-
{cyan('Pricing for products:')}
128-
------------------------------------
129-
{'Pack of Hotdog buns':<22} (pack of {STOCK_COSTS['bun'][1]}) \
130-
£{STOCK_COSTS['bun'][2]}.00
131-
{'Pack of Hotdogs':<22} (pack of {STOCK_COSTS['sausage'][1]}) \
132-
£{STOCK_COSTS['sausage'][2]}.00
129+
{cyan('Pricing:')}
130+
{LINE}
131+
{'Hotdog buns':<22} (Pack of {STOCK_COSTS['bun'][1]}) \
132+
£{STOCK_COSTS['bun'][2]}.00
133+
{'Sausages':<22} (Pack of {STOCK_COSTS['sausage'][1]}) \
134+
£{STOCK_COSTS['sausage'][2]}.00
133135
{'Onion':<22} ({STOCK_COSTS['onion'][1]} portions) \
134136
£{STOCK_COSTS['onion'][2]}.00
135137
{'Jar of Special Sauce':<22} ({STOCK_COSTS['sauce'][1]} portions) \
136138
£{STOCK_COSTS['sauce'][2]}.00"""
137139

138140

139141
HELP_SCREEN1 = f"""{cyan('Help:')}
140-
-----------------------------------------------------------------------------
142+
{LINE}
141143
{gold('Main Objective:')} Your main objective is to collect as much wealth
142144
before the final day. At the end your wealth will determine your score.
143145

0 commit comments

Comments
 (0)