Skip to content

Commit

Permalink
The Game page now links back to the Menu page
Browse files Browse the repository at this point in the history
  • Loading branch information
scourgemancer committed Aug 27, 2017
1 parent 3f98a96 commit 7746f93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/gui/SudokuGUI.java
Expand Up @@ -7,12 +7,9 @@
import javafx.stage.Screen;
import javafx.application.Application;
import javafx.scene.image.Image;
import javafx.scene.layout.*;
import javafx.scene.text.Text;
import javafx.stage.Stage;

import java.io.File;
import java.util.ArrayList;
import java.util.Observable;
import java.util.Observer;

Expand Down
6 changes: 5 additions & 1 deletion src/gui/state/GameState.java
Expand Up @@ -102,6 +102,10 @@ public void setPage(SudokuGUI gui){

@Override
public void nextPage(SudokuGUI gui, String name){

switch(name){
case "menu": gui.setState(new MenuState()); break;
case "difficultyselection": gui.setState(new DifficultySelectionState()); break;
case "puzzleselection": gui.setState(new PuzzleSelectionState()); break;
}
}
}

0 comments on commit 7746f93

Please sign in to comment.