Skip to content

zannet/hangman

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Humble implementation of hangman in go.

Get your access token

curl -X POST \
     -H "Content-length: 0" \
     http://sup-hangman.appspot.com/players

Start a game

curl -X POST \
     -H "Content-length: 0" \
     -H "Authorization: Basic YOUR_ACCESS_TOKEN" \
     http://sup-hangman.appspot.com/games

Resume of all games

curl -X GET \
     -H "Authorization: Basic YOUR_ACCESS_TOKEN" \
     http://sup-hangman.appspot.com/games

Resume of a game

curl -X GET \
     -H "Authorization: Basic YOUR_ACCESS_TOKEN" \
     http://sup-hangman.appspot.com/games/:id

Guess a letter

curl -X PUT \
     -H "Authorization: Basic YOUR_ACCESS_TOKEN" \
     -H "Content-type: application/json" \
     -d '{"char":"n"}' \
     http://sup-hangman.appspot.com/games/:id/guess

About

hang on, man!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.5%
  • Shell 0.5%