aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2013-12-29 02:04:19 +0100
committerRenaud G <renaud@rolisteam.org>2013-12-29 02:04:19 +0100
commitf30020384f816b498fe1f6013758a8de37811821 (patch)
tree7388de7fe766fe2973d94a3256f8820e3c7fbcdf /main.cpp
parent7a1784893af6fe986503dc67672135ed05816579 (diff)
downloadOneRoll-f30020384f816b498fe1f6013758a8de37811821.tar.gz
OneRoll-f30020384f816b498fe1f6013758a8de37811821.zip
Firt commit of the new dice system for rolisteam.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..479ac8a
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,26 @@
+#include <QCoreApplication>
+
+#include "diceparser.h"
+
+int main(int argc, char *argv[])
+{
+ // QCoreApplication a(argc, argv);
+ DiceParser* myParser = new DiceParser();
+
+ myParser->parseLine("3D100");
+ myParser->parseLine("3D100");
+ //myParser->parseLine("100291D66666666");
+ //myParser->parseLine("10D10g3");
+ //myParser->parseLine("10g3");
+ myParser->parseLine("1D8");
+ myParser->parseLine("1D8+2D6+7");
+ myParser->parseLine("D25");
+ myParser->parseLine("8+8");
+ myParser->parseLine("8-88");
+ myParser->parseLine("100*28");
+ myParser->parseLine("100/28");
+ myParser->parseLine("100/8");
+ myParser->parseLine("100*3");
+ //return a.exec();
+ return 0;
+}