Skip to content

Commit

Permalink
Merge branch 'dev' into finishWithGrassTests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-771 authored Oct 20, 2023
2 parents 95c13d5 + f69fbe3 commit 52dcaa6
Show file tree
Hide file tree
Showing 52 changed files with 1,964 additions and 975 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ dependencies {
implementation 'org.jetbrains:annotations:20.1.0'
implementation 'org.jetbrains:annotations:20.1.0'
implementation 'com.formdev:flatlaf:3.0'
implementation project(':legup-update')
implementation 'com.google.firebase:firebase-admin:6.3.0'
implementation 'org.apache.httpcomponents:httpclient:4.5.1'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
Expand Down

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
rootProject.name = 'Legup'
include ':legup'
include ':legup-update'

3 changes: 2 additions & 1 deletion src/main/java/edu/rpi/legup/controller/TreeController.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import edu.rpi.legup.model.Puzzle;
import edu.rpi.legup.model.tree.Tree;
import edu.rpi.legup.model.tree.TreeElementType;
import edu.rpi.legup.ui.boardview.BoardView;
import edu.rpi.legup.ui.proofeditorui.treeview.*;

Expand Down Expand Up @@ -42,7 +43,7 @@ public void mousePressed(MouseEvent e) {

/**
* Mouse Released event sets the cursor back to the default cursor and reset info for panning
*
* Set board modifiability
* @param e MouseEvent object
*/
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ public void executeCommand() {
if (transition == null) {
transition = tree.addNewTransition(treeNode);
transition.setRule(newRule);
transition.getBoard().setModifiable(false);
tree.addTreeElement(transition);
}
else {
transition.getBoard().setModifiable(false);
tree.addTreeElement(treeNode, transition);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import edu.rpi.legup.model.PuzzleExporter;
import edu.rpi.legup.model.gameboard.PuzzleElement;
import edu.rpi.legup.puzzle.shorttruthtable.ShortTruthTableBoard;
import org.w3c.dom.Document;

public class FillapixExporter extends PuzzleExporter {
Expand All @@ -15,7 +16,7 @@ protected org.w3c.dom.Element createBoardElement(Document newDocument) {
FillapixBoard board;
if (puzzle.getTree() != null) {
board = (FillapixBoard) puzzle.getTree().getRootNode().getBoard();
}
}
else {
board = (FillapixBoard) puzzle.getBoardView().getBoard();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static ArrayList<FillapixCell> getCellsAtDistance(FillapixBoard board, Fi
*
* @return an ArrayList of Boolean arrays. Each index in the ArrayList represents
* a distinct combination. Each Boolean array will be <code>totalNumItems</code>
* long and each index will be <code>true<\code> if the corresponding item is
* long and each index will be <code>true</code> if the corresponding item is
* included in that combination, and <code>false</code> otherwise.
*/
public static ArrayList<boolean[]> getCombinations(int chosenNumItems, int totalNumItems) {
Expand Down
Loading

0 comments on commit 52dcaa6

Please sign in to comment.