repl.it
@DUN0040/

A Basic Bitlife

Python

No description

fork
loading
Files
  • main.py
  • goto.py
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
from goto import *
import random
gold_pieces = int(100)
age = int(10)
sex = input("What gender are you?")
while sex != "male" and sex != "female" and sex != "other":
    sex = input("Please enter proper gender.")
name = input("What is your name?")
print("You have", gold_pieces, "gold pieces. You are", age,
      "years old. You are a", sex, "Do not worry", name,
      " you're in safe hands.")
print("Enter 1 to buy food. [-10 gold]")
print("Enter 2 to buy drink. [-5 gold]")
print("Enter 3 to sell pig. [+8 gold]")
print("Enter 4 to rob someone. [-200 gold/ +200 gold]")
print("Enter 5 to go to the casino. [Surprise]")
print("Enter 6 to age up.")
print("Enter 7 to age 5 years.")
print("Enter 8 to age 10 years.")
print("Enter 9 to get a sex change.")
sell_buy = input("Enter 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9:")
while sell_buy != "1" and sell_buy != "2" and sell_buy != "3" and sell_buy != "4" and sell_buy != "5" and sell_buy != "6" and sell_buy != "7" and sell_buy != "8" and sell_buy != "9":
        if age < int(143):
                gold_pieces = int(100)
                age = int(10)
        print("You have", gold_pieces, "gold pieces. You are", age,"years old. You are a", sex)
        print("Enter 1 to buy food. [-10 gold]")
        print("Enter 2 to buy drink. [-5 gold]")
        print("Enter 3 to sell pig. [+8 gold]")
        print("Enter 4 to rob someone. [-200 gold/ +200 gold]")
        print("Enter 5 to go to the casino. [Surprise]")
        print("Enter 6 to age up.")
        print("Enter 7 to age 5 years.")
        print("Enter 8 to age 10 years.")
        print("Enter 9 to get a sex change.")
        sell_buy = input("Enter 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9:")

if sell_buy == "1":
        print("Munch, munch, munch")
        gold_pieces = gold_pieces - int(10)
        print("You have", gold_pieces, "gold pieces. You are", age,
                "years old. You are a", sex)
        print("Enter 1 to buy food. [-10 gold]")
        print("Enter 2 to buy drink. [-5 gold]")
        print("Enter 3 to sell pig. [+8 gold]")
        print("Enter 4 to rob someone. [-200 gold/ +200 gold]")
        print("Enter 5 to go to the casino. [Surprise]")
        print("Enter 6 to age up.")
        print("Enter 7 to age 5 years.")
        print("Enter 8 to age 10 years.")
        print("Enter 9 to get a sex change.")
        sell_buy = input("Enter 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9:")
if sell_buy == "2":
        print("gulp, gulp, gulp")
        gold_pieces = gold_pieces - int(5)
        print("You have", gold_pieces, "gold pieces. You are", age, "years old. You are a", sex)
        print("Enter 1 to buy food. [-10 gold]")
        print("Enter 2 to buy drink. [-5 gold]")
        print("Enter 3 to sell pig. [+8 gold]")
        print("Enter 4 to rob someone. [-200 gold/ +200 gold]")
        print("Enter 5 to go to the casino. [Surprise]")
        print("Enter 6 to age up.")
        print("Enter 7 to age 5 years.")
        print("Enter 8 to age 10 years.")
        print("Enter 9 to get a sex change.")
        sell_buy = input(
                "Enter 1 or 2 or 3 or 4.1 or 4.2 or 5 or 6 or 7 or 8 or 9:")
if sell_buy == "3":
        print("I'm not sad to see Peppa go.")
        gold_pieces = gold_pieces + int(8)
        print("You have", gold_pieces, "gold pieces. You are", age,"years old. You are a(n)", sex)
        print("Enter 1 to buy food. [-10 gold]")
        print("Enter 2 to buy drink. [-5 gold]")
        print("Enter 3 to sell pig. [+8 gold]")
        print("Enter 4 to rob someone. [+200 gold/ -200 gold]")
        print("Enter 5 to go to the casino. [Surprise]")
        print("Enter 6 to age up.")
        print("Enter 7 to age 5 years.")
        print("Enter 8 to age 10 years.")
        print("Enter 9 to get a sex change.")
        sell_buy = input("Enter 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9:")
if sell_buy == "4":
        print("Robbing process started...")
for x in range(0, 2):
        fs = random.randint(0, 2)
if fs == 0:
        print("It succeded")
        gold_pieces = gold_pieces + int(250)
else:
        print("You got caught sneaking a woman's handbag away. You have been sentenced to 5 years.")
        age = age + int(5)
        gold_pieces = gold_pieces - gold_pieces
        print("You have", gold_pieces, "gold pieces. You are", age,"years old. You are a(n)", sex)
        print("Enter 1 to buy food. [-10 gold]")
        print("Enter 2 to buy drink. [-5 gold]")
        print("Enter 3 to sell pig. [+8 gold]")
        print("Enter 4 to rob someone. [+250 gold/ -gold]")
        print("Enter 5 to go to the casino. [Surprise]")
        print("Enter 6 to age up.")
        print("Enter 7 to age 5 years.")
        print("Enter 8 to age 10 years.")
        print("Enter 9 to get a sex change.")
        sell_buy = input("Enter 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9:")
if sell_buy == "5":
        for x in range(0, 1, 2, 3):
                fs = random.randint(0, 1, 2, 3)
        if fs == 0:
                print("You lose all your money.")
                gold_pieces = gold_pieces - gold_pieces
        elif fs == 1:
                print("You won at a game of blackjack.")
                gold_pieces = gold_pieces + int(300)
        elif fs == 2:
                print("I guess you just don't know how to bluff.")
                gold_pieces = gold_pieces - int(200)
        elif fs == 3:
                print("It's your lucky day at the roulette wheel!!!")
                gold_pieces = gold_pieces + int(1000)
        print("You have", gold_pieces, "gold pieces. You are", age,"years old. You are a(n)", sex)
        print("Enter 1 to buy food. [-10 gold]")
        print("Enter 2 to buy drink. [-5 gold]")
        print("Enter 3 to sell pig. [+8 gold]")
        print("Enter 4 to rob someone. [+200 gold/ -200 gold]")
        print("Enter 5 to go to the casino. [Surprise]")
        print("Enter 6 to age up.")
        print("Enter 7 to age 5 years.")
        print("Enter 8 to age 10 years.")
        print("Enter 9 to get a sex change.")
        sell_buy = input("Enter 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9:")
if sell_buy == "6":
                print("1 year older.")
                age = age + int(1)
                print("You have", gold_pieces, "gold pieces. You are", age,
                "years old. You are a(n)", sex)
                print("Enter 1 to buy food. [-10 gold]")
                print("Enter 2 to buy drink. [-5 gold]")
                print("Enter 3 to sell pig. [+8 gold]")
                print("Enter 4 to rob someone. [+200 gold/ -200 gold]")
                print("Enter 5 to go to the casino. [Surprise]")
                print("Enter 6 to age up.")
                print("Enter 7 to age 5 years.")
                print("Enter 8 to age 10 years.")
                print("Enter 9 to get a sex change.")
                sell_buy = input("Enter 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9:")
if sell_buy == "7":
                print("5 years older.")
                age = age + int(5)
                print("You have", gold_pieces, "gold pieces. You are", age,
                "years old. You are a(n)", sex)
                print("Enter 1 to buy food. [-10 gold]")
                print("Enter 2 to buy drink. [-5 gold]")
                print("Enter 3 to sell pig. [+8 gold]")
                print("Enter 4 to rob someone. [+200 gold/ -200 gold]")
                print("Enter 5 to go to the casino. [Surprise]")
                print("Enter 6 to age up.")
                print("Enter 7 to age 5 years.")
                print("Enter 8 to age 10 years.")
                print("Enter 9 to get a sex change.")
                sell_buy = input("Enter 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9:")
if sell_buy == "8":
                print("10 years older.")
                age = age + int(10)
                print("You have", gold_pieces, "gold pieces. You are", age,
                "years old. You are a(n)", sex)
                print("Enter 1 to buy food. [-10 gold]")
                print("Enter 2 to buy drink. [-5 gold]")
                print("Enter 3 to sell pig. [+8 gold]")
                print("Enter 4 to rob someone. [+200 gold/ -200 gold]")
                print("Enter 5 to go to the casino. [Surprise]")
                print("Enter 6 to age up.")
                print("Enter 7 to age 5 years.")
                print("Enter 8 to age 10 years.")
                print("Enter 9 to get a sex change.")
                sell_buy = input("Enter 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9:")
if sell_buy == "9":
                sex = input(
                "Are you sure? Enter the gender you want to be. Either male or female or other spelt exactly like that."
                )
                if sex != "male" or "female" or "other":
                        sex = input("Please enter male, female or other, not this gibberish.")
                if sex == "male":
                        name = input("Change your name now.")
                if sex == "female":
                        name = input("Change your name now.")
                if sex == "other":
                        name = input("You can now change your name or keep it the same. You decide."
                )
                print("You have", gold_pieces, "gold pieces. You are", age,
                "years old. You are a(n)", sex)
                print("Enter 1 to buy food. [-10 gold]")
                print("Enter 2 to buy drink. [-5 gold]")
                print("Enter 3 to sell pig. [+8 gold]")
                print("Enter 4 to rob someone. [+200 gold/ -200 gold]")
                print("Enter 5 to go to the casino. [Surprise]")
                print("Enter 6 to age up.")
                print("Enter 7 to age 5 years.")
                print("Enter 8 to age 10 years.")
                print("Enter 9 to get a sex change.")
                sell_buy = input("Enter 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9:")
print("You died.")
relife_end = input("Enter 10 to have a new life, or enter 20 to quit the game.")
if relife_end == "10":
                from goto import *
                gold_pieces = int(100)
        age = int(10)
        sex = input("What gender are you?")
        name = input("What is your name?")
        print("You have", gold_pieces, "gold pieces. You are", age,
        "years old. You are a(n)", sex, "Don't worry", name,
                "you're in safe hands... again.")
        print("Enter 1 to buy food. [-10 gold]")
        print("Enter 2 to buy drink. [-5 gold]")
        print("Enter 3 to sell pig. [+8 gold]")
        print("Enter 4 to rob someone. [+200 gold/ -200 gold]")
        print("Enter 5 to go to the casino. [Surprise]")
        print("Enter 6 to age up.")
        print("Enter 7 to age 5 years.")
        print("Enter 8 to age 10 years.")
        print("Enter 9 to get a sex change.")
        sell_buy = input("Enter 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9:")
if relife_end == "20":
        print("Ok, that's your choice.")