Skip to content

TBytes404/Puzzle-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PuzzleGame

A TCP based CLI escape-room puzzle game. Play through YAML-defined stories, solve riddles, escape!

Server

mix deps.get   # Install
mix run -e "PuzzleGame.Endpoint.start"       # Start Server

Client

 # Start interactive session
nc localhost 4049

# Upload a story file | COMMAND: UPLOAD <BINARY_SIZE>
f=path_to_story_file.yaml;
s=$(stat -f %z $f) # Macos
s=$(stat -c %f $f) # Linux
echo "upload $s" | nc localhost 4049 < $f;

Creating Stories

__meta__:
  title: My Story
  author: YourName
  tries: 3
  entry: start

start:
  quest: "Your riddle here?"
  answer: answer
  hint: "Wrong, try again"
  pass: "Correct!"
  next: end

end:
  quest: "Final puzzle?"
  answer: final
  hint: "Hint"
  pass: "You escaped!"

About

A very basic text based puzzle game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages