diff --git a/.gitignore b/.gitignore index e92090f..92c7510 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ target old -*.db -*.json .cargo diff --git a/examples/example1/answer.json b/examples/example1/answer.json new file mode 100644 index 0000000..4b1bc77 --- /dev/null +++ b/examples/example1/answer.json @@ -0,0 +1,3 @@ +{ + "odds": 0.0 +} \ No newline at end of file diff --git a/examples/example1/empire.json b/examples/example1/empire.json new file mode 100644 index 0000000..9b8dfdd --- /dev/null +++ b/examples/example1/empire.json @@ -0,0 +1,17 @@ +{ + "countdown": 7, + "bounty_hunters": [ + { + "planet": "Hoth", + "day": 6 + }, + { + "planet": "Hoth", + "day": 7 + }, + { + "planet": "Hoth", + "day": 8 + } + ] +} \ No newline at end of file diff --git a/examples/example2/answer.json b/examples/example2/answer.json new file mode 100644 index 0000000..4f092f2 --- /dev/null +++ b/examples/example2/answer.json @@ -0,0 +1,3 @@ +{ + "odds": 0.81 +} \ No newline at end of file diff --git a/examples/example2/empire.json b/examples/example2/empire.json new file mode 100644 index 0000000..a3f5e37 --- /dev/null +++ b/examples/example2/empire.json @@ -0,0 +1,17 @@ +{ + "countdown": 8, + "bounty_hunters": [ + { + "planet": "Hoth", + "day": 6 + }, + { + "planet": "Hoth", + "day": 7 + }, + { + "planet": "Hoth", + "day": 8 + } + ] +} \ No newline at end of file diff --git a/examples/example3/answer.json b/examples/example3/answer.json new file mode 100644 index 0000000..b403591 --- /dev/null +++ b/examples/example3/answer.json @@ -0,0 +1,3 @@ +{ + "odds": 0.9 +} \ No newline at end of file diff --git a/examples/example3/empire.json b/examples/example3/empire.json new file mode 100644 index 0000000..e9a7c5f --- /dev/null +++ b/examples/example3/empire.json @@ -0,0 +1,17 @@ +{ + "countdown": 9, + "bounty_hunters": [ + { + "planet": "Hoth", + "day": 6 + }, + { + "planet": "Hoth", + "day": 7 + }, + { + "planet": "Hoth", + "day": 8 + } + ] +} \ No newline at end of file diff --git a/examples/example4/answer.json b/examples/example4/answer.json new file mode 100644 index 0000000..a3878fc --- /dev/null +++ b/examples/example4/answer.json @@ -0,0 +1,3 @@ +{ + "odds": 1.0 +} \ No newline at end of file diff --git a/examples/example4/empire.json b/examples/example4/empire.json new file mode 100644 index 0000000..5e16c4b --- /dev/null +++ b/examples/example4/empire.json @@ -0,0 +1,17 @@ +{ + "countdown": 10, + "bounty_hunters": [ + { + "planet": "Hoth", + "day": 6 + }, + { + "planet": "Hoth", + "day": 7 + }, + { + "planet": "Hoth", + "day": 8 + } + ] +} \ No newline at end of file diff --git a/examples/millennium-falcon.json b/examples/millennium-falcon.json new file mode 100644 index 0000000..c969b42 --- /dev/null +++ b/examples/millennium-falcon.json @@ -0,0 +1,6 @@ +{ + "autonomy": 6, + "departure": "Tatooine", + "arrival": "Endor", + "routes_db": "universe.db" +} \ No newline at end of file diff --git a/examples/universe.db b/examples/universe.db new file mode 100644 index 0000000..695680f Binary files /dev/null and b/examples/universe.db differ