Skip to content
Snippets Groups Projects
Commit 63ec2b56 authored by Nimrod Abramovich's avatar Nimrod Abramovich
Browse files

Renamed Constraints class to ConstraintsHandler

parent 202195d0
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
...@@ -6,7 +6,7 @@ import java.util.List; ...@@ -6,7 +6,7 @@ import java.util.List;
import javafx.scene.control.TextField; import javafx.scene.control.TextField;
import javafx.scene.layout.VBox; import javafx.scene.layout.VBox;
public class Constraints { public class ConstraintsHandler {
private TextField[] gridNumbers = new TextField[Main.N*Main.N]; private TextField[] gridNumbers = new TextField[Main.N*Main.N];
private VBox[] gridBoxes = new VBox[Main.N*Main.N]; private VBox[] gridBoxes = new VBox[Main.N*Main.N];
...@@ -14,7 +14,7 @@ public class Constraints { ...@@ -14,7 +14,7 @@ public class Constraints {
private boolean[][] gridErrors = new boolean[Main.N*Main.N][3]; private boolean[][] gridErrors = new boolean[Main.N*Main.N][3];
public Constraints() {} public ConstraintsHandler() {}
private void updateData() { private void updateData() {
gridNumbers = Main.getGridNumbers(); gridNumbers = Main.getGridNumbers();
......
...@@ -54,7 +54,7 @@ public class Main extends Application { ...@@ -54,7 +54,7 @@ public class Main extends Application {
private boolean clearing = false; private boolean clearing = false;
private boolean undoing = false; private boolean undoing = false;
private int fontSize; private int fontSize;
private Constraints constraints = new Constraints(); private ConstraintsHandler constraints = new ConstraintsHandler();
private Stack<GameState> undoStack = new Stack<GameState>(); private Stack<GameState> undoStack = new Stack<GameState>();
private Stack<GameState> redoStack = new Stack<GameState>(); private Stack<GameState> redoStack = new Stack<GameState>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment