Ask coding questions
how do i have a code read the class and not the list.https://repl.it/@minecraftmake55/halo-monopoly
Basically, you want the index for Propertys to wrap around? Well, there's this handy way to do that: instead of Propertys[player1.placement].Name on line 117, try Propertys[player1.placement%len(Propertys)].Name.
Propertys
Propertys[player1.placement].Name
117
Propertys[player1.placement%len(Propertys)].Name
Basically, you want the index for
Propertys
to wrap around? Well, there's this handy way to do that: instead ofPropertys[player1.placement].Name
on line117
, tryPropertys[player1.placement%len(Propertys)].Name
.