m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/curling.rb
diff options
context:
space:
mode:
Diffstat (limited to 'curling.rb')
-rw-r--r--curling.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/curling.rb b/curling.rb
index 59c67db..4b03e8d 100644
--- a/curling.rb
+++ b/curling.rb
@@ -9,6 +9,19 @@ end
before do
headers 'Content-Type' => 'text/plain'
+ if request.user_agent !~ /^curl/
+ halt <<~MSG
+Welcome to Hex Curler!
+======================
+This game is based on Jeff Moore's Hex (www.1km1kt.net/rpg/hex).
+Source code: gitlab.com/m-chrzan/hex-curler
+
+This game is meant to be experienced in the command line. Run the following line
+of bash to get started:
+
+c=; while clear; curl -c k -b k hex.m-chrzan.xyz/$c; read c; [ $c ]; do :; done
+ MSG
+ end
end
get '/' do