@eankeen So maybe add a bit of data: 1. An array of objects (let's call it properties) that contains information about each property Something kind of like this:
☝ This may not work in python, so you might have to look up "how to create an array of objects in python" if it doesn't work
some integer that represents the player's location in the array, like where they are on the map (let's call it placement for now)
Then, maybe create a function called rollDice or something. When it's called, it can get the random number, and add to placement
Then, maybe you can output wherever the player is
print("You are at the following property")
print( properties[placement].name )
print("The property costs this much:")
print( properties[placement].cost )
You may want to consider creating an array that represents all of the properties the player has purchased ;)
need help making a monopoly game on python
What kind of help are ya looking for? :)
@eankeen So maybe add a bit of data:
1. An array of objects (let's call it
properties
) that contains information about each propertySomething kind of like this:
☝ This may not work in python, so you might have to look up "how to create an array of objects in python" if it doesn't work
placement
for now)Then, maybe create a function called
rollDice
or something. When it's called, it can get the random number, and add to placementThen, maybe you can output wherever the player is
You may want to consider creating an array that represents all of the properties the player has purchased ;)
@eankeen how to do certain code or how to fix it
@eankeen https://Monopoly.minecraftmake55.repl.run
@minecraftmake55 :thinking: Do you have some sort of repl
Edit: Got it
@eankeen https://repl.it/live/5EAL8OG7556q9Q if this is better
@eankeen could you help on the multplayer thing
@minecraftmake55 you two should go work in discord
@eankeen that works in python
@PYer dont have it
@minecraftmake55 ok