From e3afffc91d678301fcf7660db541cacc8b7a4e8d Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sat, 17 Aug 2019 23:31:13 -0700 Subject: Initial commit --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..28f3894 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# Library for cUrl-based games + +curling allows you to create simple games served over HTTP, intended to be +interacted with in a CLI environment with curl. + +State is stored locally on the user's machine in cookies. + +## Basic interaction + + curl -c c.txt -b c.txt http://endpoint.com/ + You have 100HP, 10 coins. What do you want to do? + >fight + >heal (-5 coins) + curl -c c.txt -b c.txt http://endpoint.com/fight + You won, but took some damage. You find 2 coins! + You have 75HP, 12 coins. + >fight + >heal (-5 coins) + # edits cookie file to go back to 100HP + curl -c c.txt -b c.txt http://endpoint.com/fight + Error: invalid state! -- cgit v1.2.3