Skip to content

Commit

Permalink
commented before implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ContemporaryNietzsche committed Jun 21, 2024
1 parent 58ff2bf commit ec8e1d3
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package edu.rpi.legup.puzzle.binary.rules;


import edu.rpi.legup.model.gameboard.Board;
import edu.rpi.legup.model.gameboard.PuzzleElement;
import edu.rpi.legup.model.rules.DirectRule;
Expand All @@ -11,8 +10,6 @@

import java.util.ArrayList;

// dont mind me

public class EliminateTheImpossibleDirectRule extends DirectRule {
private final String INVALID_USE_MESSAGE = "Number at cell is incorrect";

Expand Down Expand Up @@ -58,6 +55,11 @@ public ArrayList<String> binaryCombiniations(int numEmpty) {
}
@Override
public String checkRuleRawAt(TreeTransition transition, PuzzleElement puzzleElement) {
// This function should first check if there are three open spaces, if so, continue, else figure out
// how many spots are open, all the possible binary combinations that could be put there, and by
// analyzing the common factors, logically determine which number has a set spot, meaning that we know
// that a certain spot must be a zero or a one

BinaryBoard origBoard = (BinaryBoard) transition.getParents().get(0).getBoard();
BinaryCell binaryCell = (BinaryCell) puzzleElement;

Expand Down

0 comments on commit ec8e1d3

Please sign in to comment.