0
How do you create player order?
I am making a dice game that inputs players 2-6. I have a class to create the number of players the user selects, but I am trying to create an order they go in based on a dice they roll. Also, I tried creating a dictionary and pair the key(player) to the value(die), but sorting the list seemed impossible. Is there anyway to order the die they roll connected to their player variables from the class? If I could do that, I could use a for loop to go through the player keys, which should be in order, and move on to what they should do. Edit: Let it be noted Decimis... I'm using Python 3 Here is the link to the code : https://gist.github.com/Kirbster102/787a35c14cb4fb1cbd2e18bcf4ebd1b6 Problem is in the Project Help
1 ответ
+ 1
"Kirbster" with a Kirby icon wearing shades, lol, nice 😁
As for your question, it's recommended that you post a link to your code here so people can see what you did so far. You're going to have to at least say what language you are trying to use.
Edit: I see you added the language you are using.