Hi, I'm trying to build a game where 2 players take their turns to roll a die and see who gets all 6 numbers first. I've pretty much done everything, however eventhough I have made one player's button disabled on the other player's turn, it won't switch turn until a new number is rolled. So for example if player 1 roll 5 on his first turn, it will switch to player2, and when it switch back to player 1, it will be player 1 turn forever until he rolls a number different from 5. Here are my codes
Die.java - this class is used to generate a random number
DisplaySixNumbersPanel.java - this is the main class to run the whole game
SixNumbersPanel2.java - this is where my ActionListener is located
Player.java - I have a method call Complete() in here so that it will be called in SixNumbersPanel2 later to see if a player has completed the game
Please help me to find a way to solve this problems. This is my first post so I apology for any errors I made when posting this. Any helps would be appreciated.