blargg / friends-against-humanity

CS 411 project repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Friends Against Humanity

API

Currently only supports playing a game over a websocket. Creating players, joining/creating games, ect will come soon. For the demo all this information should be pre-loaded into the database.

Websocket Address hostname:port/GameState

Play Card/Pick Winning Card Message Format

{ 
    GameId
    PlayerId
    PlayerAuth 
    CardId - The card being played, or the winning card
    End
}

GameState Update Message Format

{
    GameId
    RoundNumber
    CurrentBlackCard
    CurrentJudge
    PlayerCount

    Hand - Player's Hand, Array of CardID's
    InPlay - Cards on table, Array of CardID's
}

Setup

To get started, setup your $GOPATH and run

go get github.com/blargg/friends-against-humanity

Check inside $GOPATH/bin and there should be a build of the server. Run it and go to http://127.0.0.1:8080 to confirm that it is working.

You can type

go build github.com/blargg/friends-against-humanity

to rebuild any changes to the project. Inside $GOPATH/src/github.com/blargg/friends-against-humanity is where the git repo is stored.

It is a real git repo and you can do your pushing, pulling, and commiting from there. You may need to setup the pushing and pulling because I'm sure go get just clones the repo anonymously. You can set this up according to https://help.github.com/articles/adding-a-remote.

See https://code.google.com/p/go-wiki/wiki/GithubCodeLayout for more info.

About

CS 411 project repo


Languages

Language:JavaScript 81.5%Language:CSS 12.7%Language:Go 5.8%