diff options
-rw-r--r-- | curling.rb | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |