I can't come up with logic for certain actionListeners for my program, mainly the ones that will run the game.
I want to go through my actionListeners one by one.
First actionListener I want to work with is the one that will be setting the order of pictures that the user has to guess to win.
In my interface class I have a menuBar. I want to use the New action to start the random order.
private class NewListener implements ActionListener {
public void actionPerformed(ActionEvent arg0) {
}
}
Should i do something like
int v = 0;
for (int i = 0; i < 4; i++)
v = v * 10 + (int)(Math.random() * 6 + 1);
return v;
I'm truly confused.. I'm not asking for handouts I just need to see some sort of logic on this.
I also have problems with the other actionListners.
If you would like to see all of my code let me know.
My project is due this Tuesday so I want to get the actionListeners done tonight if possible.
Yes I've seen others sources code on the internet but it's not quite matching what I want and I can't understand it.
Any help please, Thank you.