Skip to content

Commit

Permalink
Added temporary debuging prints
Browse files Browse the repository at this point in the history
  • Loading branch information
tdou25 committed Jul 12, 2024
1 parent e837fdb commit 55b8345
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/main/java/edu/rpi/legup/puzzle/sudoku/SudokuCell.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ public SudokuCell copy() {

@Override
public void setType(Element e, MouseEvent m) {
System.out.println("Attempting to change tile");
if(e.getElementName().equals("Number Tile")){
if (e.getElementName().equals("Number Tile")) {
if (m.getButton() == MouseEvent.BUTTON1) {
if (this.data <= 0 || this.data > 9) {
if (this.data <= 0 || this.data > 8) {
this.data = 1;
}
else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class SudokuCellController extends ElementController {
@Override
public void changeCell(MouseEvent e, PuzzleElement data) {
SudokuCell cell = (SudokuCell) data;
System.out.print(111);
//System.out.print(111);
if (e.getButton() == MouseEvent.BUTTON1) {
if (e.isControlDown()) {
this.boardView
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package edu.rpi.legup.puzzle.sudoku.elements;

import edu.rpi.legup.model.elements.PlaceableElement;
import edu.rpi.legup.model.elements.NonPlaceableElement;

public class NumberTile extends PlaceableElement {
public class NumberTile extends NonPlaceableElement {
private int object_num;

public NumberTile() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package edu.rpi.legup.puzzle.sudoku.elements;

import edu.rpi.legup.model.elements.NonPlaceableElement;
import edu.rpi.legup.model.elements.PlaceableElement;

public class UnknownTile extends NonPlaceableElement {
public class UnknownTile extends PlaceableElement {
public UnknownTile() {
super(
"SUDO-UNPL-0001",
Expand Down

0 comments on commit 55b8345

Please sign in to comment.