Question: how to call the two methods in JAVA (orderofplayer method and play method) in the main class or how can i call the method orderofplayer
how to call the two methods in JAVA (orderofplayer method and play method) in the main class or how can i call the method orderofplayer in the play method to relate them together.I have to ask the number of players to the user and based on that the order of playing turns must be determined. For that, each player must throw the dice to obtain the largest possible number. I did the code for each of these parts separately and i dont know how to make them work together.My code is sorting the dices first and then asking for the number of players when it should be the inverse. For example say i have sorted the dices values of the players and i obtain something like (6,4,3,1) How do i assign each value back to the players so i can say player 3 obtained 6 so player 3 starts the game etc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
