Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.org
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Each letter represents a digit, and the goal is to reconstruct the original arit
** Prerequisites
This project works on 32 bits and 64 bits environment and requires:

- JDK 11+
- JDK 17+
- Maven 3+
- Cryptarithmetic Puzzle Solver in C (optional)
- Download it from [[https://tamura70.gitlab.io/web-puzzle/cryptarithm/][Naoyuki Tamura Website]].
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cryptator/Cryptator.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private static long solve(final String cryptarithm, final CryptaParserWrapper pa
final ICryptaNode node = parseCryptarithm(cryptarithm, parser, LOGGER);

final CryptaBiConsumer consumer = buildBiConsumer(config);
final boolean solved = solver.solve(node, config, consumer);
final boolean solved = solver.solve(node, config, consumer).isFeasible();
String status = "ERROR";
if (consumer.getErrorCount() == 0) {
status = solved ? "OK" : "KO";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cryptator/game/CryptaGameEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private boolean solveGame() {

@Override
public boolean isSolved() {
return userModel.getSolution().isTotalSolution();
return userModel.getSolution().isTotalAssignment();
}

private static CryptaModel makeUserDecisionModel(final CryptaModel model) {
Expand Down
Loading
Loading