Hi, I am working on this program where at the end of the game I ask the user if they want to play again. If they say yes, I need to start a new game. I made a restart() method:
public void restart(){
Game g = new Game();
g.playGame();
}
However when I call this method some of the values in my program stay at what they were during the previous game.
Is there a game to just clear everything and create an new instance of the game with all the default values?