aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2014-01-04 16:24:54 +0100
committerRenaud G <renaud@rolisteam.org>2014-01-04 16:24:54 +0100
commit4de8cf5796446b7f8b09d776e4a6a6d6b8e95cb6 (patch)
treed0553a394e50d1de1a5185a7006fe3cb66cbfa3b /main.cpp
parent4114232457cbc5739872f479ef5d7772e6b5f42f (diff)
downloadOneRoll-4de8cf5796446b7f8b09d776e4a6a6d6b8e95cb6.tar.gz
OneRoll-4de8cf5796446b7f8b09d776e4a6a6d6b8e95cb6.zip
-Adding range, booleancondition and countexecutenode.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp22
1 files changed, 16 insertions, 6 deletions
diff --git a/main.cpp b/main.cpp
index 479ac8a..a42115e 100644
--- a/main.cpp
+++ b/main.cpp
@@ -9,15 +9,25 @@ int main(int argc, char *argv[])
myParser->parseLine("3D100");
myParser->parseLine("3D100");
- //myParser->parseLine("100291D66666666");
- //myParser->parseLine("10D10g3");
- //myParser->parseLine("10g3");
- myParser->parseLine("1D8");
+ // myParser->parseLine("100291D66666666");
+ myParser->parseLine("10D10K3");
+ myParser->parseLine("10k3");
+
+ /// roll 10 dice of 10 slices and sort them
+ myParser->parseLine("10D10s");
+
+ /// roll 15 dice of 10 slices and count above 7
+ myParser->parseLine("15D10c[8-10]");
+
+ /// roll 15 dice of 10 slices condition count above 7
+ myParser->parseLine("15D10c[>7]");
+
+
myParser->parseLine("1D8+2D6+7");
myParser->parseLine("D25");
myParser->parseLine("8+8");
- myParser->parseLine("8-88");
- myParser->parseLine("100*28");
+ myParser->parseLine("88-1D20");
+ myParser->parseLine("100*1D20");
myParser->parseLine("100/28");
myParser->parseLine("100/8");
myParser->parseLine("100*3");