aboutsummaryrefslogtreecommitdiff
path: root/examples/text-adventure/main.rs
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2023-04-02 12:06:05 +0200
committerAndreas Grois <andi@grois.info>2023-04-02 13:27:12 +0200
commitc9880dd12df2c614360cbc85609d859f3652507f (patch)
tree15b7004d5ee69cdf1c79af0aa7155c41c207c6f5 /examples/text-adventure/main.rs
parentea1814025f3bbab7a0aac640e69c56d983a18308 (diff)
Example: Initial draft of the story
Diffstat (limited to 'examples/text-adventure/main.rs')
-rw-r--r--examples/text-adventure/main.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/text-adventure/main.rs b/examples/text-adventure/main.rs
new file mode 100644
index 0000000..788c3d5
--- /dev/null
+++ b/examples/text-adventure/main.rs
@@ -0,0 +1,11 @@
+//! A small example text adventure, the logic of which is implemented as a Free Monad based eDSL.
+//!
+//! The goal of this game is to buy a sausage roll.
+
+mod dsl;
+mod logic;
+mod side_effects;
+
+fn main() {
+ let game = logic::game();
+} \ No newline at end of file