repl.it
@minecraftmake55/

halo monopoly

Python

No description

fork
loading
Files
  • main.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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
print("welcom to")
print("MONOPOLY")
print("halo edition")








class commendation:
  def __init__ (self,name, price):
    self.name = name
    self.price = price
covenant_supply_drop = commendation("covenant_supply_drop", 0)
unsc_supply_drop = commendation("unsc_supply_drop",0)
forunner_artifact = commendation("forunner_artifact",0)
ammo_crate = commendation("ammo_crate",0)
base_captured = commendation("base_captured",0)


class AI:
  def __init__(self,name, price):
    self.name = name 
    self.price = price
flood_infection = AI("flood_infection",0)
captured = AI("captured",0)
invasblity = AI("invasblity",0)
warthog = AI("warthog",0)
rank_up = AI("rank_up",0)

chest = [covenant_supply_drop,unsc_supply_drop,forunner_artifact,ammo_crate,base_captured]
chance = [flood_infection,captured,invasblity,warthog,rank_up]




class player:

  def __init__ (self,name,character,placement,money):
    self.name = name
    self.character = character
    self.placement = placement
    self.money = money


player1 = player("117","shoe",1,250)
player2 = player("cortana","car",1,250)
#player3 = player()
#player4 = player()

class property:

  def __init__ (self,price,rent,color,placement,Name,Owned):
    self.price = price
    self.rent = rent 
    self.color = color 
    self.placement = placement
    self.Name = Name
    self.Owned = Owned

class chance:
  def __init__ (self,Placement,Name):
    self.Placement = Placement
    self.Name = Name
class chest:
  def __init__(self,placemenT,Name):
    self.placemenT = placemenT
    self.Name = Name
class taxs:
  def __init__(self,PLAcement,Cost,Name):
    self.PLAcement = PLAcement
    self.Cost = Cost
    self.Name = Name

class vehicles:
  def __init__(self,PLacement,cosT,Name):
    self.PLacement = PLacement
    self.cosT = cosT
    self.Name = Name

class special_forces:
  def __init__(self,PLacement,cost,Name):
    self.PLacement = PLacement
    self.cost = cost
    self.Name = Name 


#chance == AI

start = property(0,0,"clear","start","start",False)
Ivanoff_station  = property(60,2,"brown",2,"Ivanoff station",False)
commendation = chest(3,"commendation")
Cairo_station = property(60,4,"brown",4,"Cairo station",False)
ordance_drop = taxs(5,200,"oredance drop")
pelacn = vehicles(6,200,"pelacn")
Arcadia = property(100,6,"light blue",7,"Arcadia",False)
AI = chance(8,"AI")
Harvest = property(100,6,"light blue",9,"Harvest",False)
saidra = property(120,8,"light blue",10,"Saidra",False)
jail = property(0,0, "red",11,"jail",False)
Shadow_of_intent = property(140,10,"pink",12,"Shadow of intent",False)
unsc = special_forces(13,150,"unsc")
Art_and_prayer_truth = property(140,10,"pink",14,"Art and prayer truth",False)
Reconciliation = property(160,12,"pink",15,"Reconciliation",False)
phantom = vehicles(16,200,"phantom")
Amber_clad = property(180,14,"orange",17,"Amber clad",False)
commendation = chest(18,"commendation")
Forward_unto_dawn = property(180,14,"orange",19,"Forward unto dawn",False)
Pillar_of_autumn = property(200,16,"orange",20,"Pillar of autumn",False)
free_space = property(0,0,"clear",21,"free space",False)
Requiem  = property(220,18,"red",22,"Requiem ",False)
AI = chance(23,"AI")
Onyx = property(220,18,"red",24,"Onyx",False)
The_ark = property(240,20,"red",25,"The ark",False)
scorpian = vehicles(26,200,"scorpian")
High_charity = property(260,22,"yellow",27,"High charity",False)
Meridian = property(260,22,"yellow",28,"Meridian",False)
ONI = special_forces(28,150,"ONI")
Reach = property(280,24,"yellow",30,"Reach",False)
jails = property(0,0, "red",30,"jail",False)
Gamma_halo = property(300,26,"green",32,"Gamma halo ",False)
Delta_halo = property(300,26,"green",33,"Delta halo",False)
commendation = chest(34,"commendation")
Alpha_halo = property(320,28,"green",35,"Alpha halo",False)
AI = chance(34,"AI")
sun_helios = property(350,35,"blue",36,"Sun helios ",False)
oversheld = taxs(37,100,"oversheld")
Earth = property(400,50,"blue",38,"Earth",False)

Propertys = [start,Ivanoff_station,commendation,Cairo_station,ordance_drop,pelacn,Arcadia,AI ,Harvest ,saidra,jail ,Shadow_of_intent,unsc, Art_and_prayer_truth,Reconciliation,phantom ,Amber_clad ,commendation,Forward_unto_dawn ,Pillar_of_autumn, free_space ,Requiem, AI ,Onyx ,The_ark,scorpian ,High_charity ,Meridian,ONI ,Reach, jails, Gamma_halo , Delta_halo, commendation ,Alpha_halo ,AI ,sun_helios,oversheld ,Earth ]
vehicles = [pelacn,phantom,scorpian]
#special_forces = [unsc,ONI]




if player1.placement == AI:
  import random
  num = random.randint(0,6)
  print(num)


if player1.placement == commendation:
  import random
  num = random.randint(0,5) 
#Create objects for chance and chest cards
#Add objects to these lists \/
  chest = [covenant_supply_drop,unsc_supply_drop,forunner_artifact,ammo_crate]
  print(num)
chest = [covenant_supply_drop,unsc_supply_drop,forunner_artifact,ammo_crate]
chance = [flood_infection,captured,invasblity,warthog]
#Acces them with chest[num] or chance[num]


#class player:

 # def __init__ (self,name,character,placement,money):
  #  self.name = name
   # self.character = character
    #self.placement = placement
    #self.money = money


#player1 = player("117","shoe",1,250)
#player2 = player("cortana","car",1,250)
#player3 = player()
#player4 = player()

import random

while True:
  
  d1 = (random.randint(1,6))
  d2 = (random.randint(1,6))

  print(d1)
  print(d2)
  print("the sum of the dice is", (d1+d2))
  if d1 == d2:
    
    print("dubles! roll again!")
    
    


  player1.placement = player1.placement + (d1+d2)
  #d1 = (random.randint(1,6))
  #d2 = (random.randint(1,6))
 # player2.placement = player2.placement + (d1+d2)
  if player1.placement >= 39:
    player1.placement -= 39
  print("117 is on",(player1.placement))
  print("117 is on",Propertys[player1.placement].Name)
 # print("cortana is on",(player2.placement))
 #print("cortana is on",Propertys[player2.placement].Name)
  if Propertys[player1.placement].__class__.__name__ == "property":
    print("property!!!!!!!")
    if Propertys[player1.placement].Owned == True:
      print("this property is already owned")
    else:
      propertys = input("would you like to buy this property")
      if propertys == "yes":
        print("you now have this property")
        player1.money -= (Propertys[player1.placement].price)
        Propertys[player1.placement].Owned = True
        print (player1.money)
    
  else: 
      print("roll the dice")
  if Propertys[player1.placement].__class__.__name__== "vehicles":
    print("vehicle!!")
    Vehicles = input("whould you like to buy this vehicle")
    if Vehicles == "yes":
      print("you have this vehicles") 
      player1.money -= (Propertys[player1.placement].cosT)
      print (player1.money)
    else: 
      print("roll the dice")
  


  if Propertys[player1.placement].__class__.__name__== "taxs":
    print("we now have your money")
    taxs = input("we took your money agenst your will")
    player1.money -= 200
    print(player1.money)



  if Propertys[player1.placement].__class__.__name__=="special_forces":
    special_forces = input("whould you like to buy your varry own army")
    print("army")
    if special_forces == "yes":
      print("you now have a army")
      player1.money -= (Propertys[player1.placement].cost)
      print(player1.money)
    
  if Propertys[player1.placement].__class__.__name__=="chest":
    chest = input("time to role a number")
    import random
    num = random.randint(1,4)
    if num == 1:
      print("you have found a covenant supply drop")
    if num == 2:
      print("you have found a unsc supply drop")
    if num == 3:  
      print("you have found a forunner artifact")
    if num == 4:
      print("you have found a ammo crate")
    print(num)
  if Propertys[player1.placement].__class__.__name__=="chance":
    chance = input("time to role a number")
    import random
    num = random.randint(1,4)
    if num == 1:
      print("your teamn has been infeced by the flood")
    if num == 2:
     print("you have be captured")
    if num == 3:  
     print("you are invasbl")
    if num == 4:
      print("you found a warthog")    
    print(num)

chest = [covenant_supply_drop,unsc_supply_drop,forunner_artifact,ammo_crate]
chance = [flood_infection,captured,invasblity,warthog]




#need to give money to the player






  #if propertys "ownd":
    #print ()
  
  
   #buy("would you like to buy")  
  


  
  
  #else:



    #(if d1 == d2 True print again)
  #dice = input ("press enter to rule again")
  #break
print("Move forwred",(d1+d2))
 





















#what placement they are at

#("name": "Mediterranean Avanue",)
#("cost": 80)
#("name": "Baltic Avenue",)
#("cost": 80)







#print("You are at the following property")
#print( properties[placement].name )

#print("The property costs this much:")
#print( properties[placement].cost )