File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ It is based on [[https://github.com/chocoteam/choco-solver][choco-solver]] which
41
41
42
42
The jar file contains all required dependencies.
43
43
The next step is simply to run the console application.
44
- : java -cp target/cryptator-0.6.0-SNAPSHOT- with-dependencies.jar cryptator.Cryptator send+more=money
44
+ : java -cp target/cryptator-0.6.0-with-dependencies.jar cryptator.Cryptator send+more=money
45
45
46
46
There are three console applications and the links below point to demonstration scripts.
47
47
@@ -66,7 +66,7 @@ It is based on [[https://github.com/chocoteam/choco-solver][choco-solver]] which
66
66
<dependency>
67
67
<groupId>fr.univ-cotedazur</groupId>
68
68
<artifactId>cryptator</artifactId>
69
- <version>0.6.0-SNAPSHOT </version>
69
+ <version>0.6.0</version>
70
70
</dependency>
71
71
#+END_EXAMPLE
72
72
Original file line number Diff line number Diff line change 16
16
<groupId >fr.univ-cotedazur</groupId >
17
17
<artifactId >cryptator</artifactId >
18
18
<packaging >jar</packaging >
19
- <version >0.6.0-SNAPSHOT </version >
19
+ <version >0.6.0</version >
20
20
<name >cryptator</name >
21
21
<description >Constraint-based cryptarithm solver</description >
22
22
<url >https://github.com/arnaud-m/cryptator</url >
Original file line number Diff line number Diff line change 12
12
13
13
#+BEGIN_SRC sh :results silent
14
14
ln -s ../words .
15
- ln -s ../../../target/cryptator-0.6.0-SNAPSHOT- with-dependencies.jar .
15
+ ln -s ../../../target/cryptator-0.6.0-with-dependencies.jar .
16
16
#+END_SRC
17
17
18
18
** Clear directories
54
54
** Create the solver
55
55
56
56
#+BEGIN_SRC sh :tangle solver.sh
57
- JAR=cryptator-0.6.0-SNAPSHOT- with-dependencies.jar
57
+ JAR=cryptator-0.6.0-with-dependencies.jar
58
58
MAINCLASS=cryptator.Cryptagen
59
59
60
60
MAINARGS=`cat $1 $2 | xargs`
@@ -95,7 +95,7 @@ exit $?
95
95
** Create the solver
96
96
97
97
#+BEGIN_SRC sh :tangle solver.sh
98
- JAR=cryptator-0.6.0-SNAPSHOT- with-dependencies.jar
98
+ JAR=cryptator-0.6.0-with-dependencies.jar
99
99
MAINCLASS=cryptator.Cryptagen
100
100
101
101
MAINARGS=`cat $1 $2 | xargs`
@@ -248,7 +248,7 @@ The word lists ~colors.txt~ and ~monsters.txt~ takes the most time by far (aroun
248
248
*** Cryptator
249
249
250
250
#+BEGIN_SRC sh :tangle solver.sh
251
- JAR=cryptator-0.6.0-SNAPSHOT- with-dependencies.jar
251
+ JAR=cryptator-0.6.0-with-dependencies.jar
252
252
MAINCLASS=cryptator.Cryptator
253
253
MAINARGS=`cat $1 | xargs`
254
254
## exclude cryptarithm with long words
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ DIR="../words"
15
15
# # Execute the command.
16
16
# # Filter the output: print only the cryptarithm.
17
17
function solve() {
18
- java -cp $JAR cryptator.Cryptagen -c TRUE $* | sed -n ' s/\(.*+.*=.*\)/ - \1/p'
18
+ java -cp $JAR cryptator.Cryptagen -c TRUE -v quiet $* | sed -n ' s/\(.*+.*=.*\)/ - \1/p'
19
19
}
20
20
21
21
echo " # Search cryptarithms with a UNIQUE solution"
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ MAX=100
18
18
# # Execute the command.
19
19
# # Filter the output: print only the cryptarithm.
20
20
function solve() {
21
- java -cp $JAR cryptator.Cryptagen -c TRUE $* | sed -n ' s/\(.*+.*=.*\)/ - \1/p'
21
+ java -cp $JAR cryptator.Cryptagen -c TRUE -v quiet $* | sed -n ' s/\(.*+.*=.*\)/ - \1/p'
22
22
}
23
23
24
24
echo " # Doubly true cryptarithms between $MIN and $MAX "
You can’t perform that action at this time.
0 commit comments