-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
628 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,10 +22,21 @@ Play! | |
|
||
`A W O O` | ||
|
||
## Dependencies (for development) | ||
Install go and npm through your favorite means. Then install bindata and elm. | ||
|
||
``` | ||
go get github.com/jteeuwen/go-bindata/... | ||
go get github.com/elazarl/go-bindata-assetfs/... | ||
npm i -g [email protected] | ||
``` | ||
|
||
## How to build it (if you want to change the code) | ||
The simplest, though most time consuming, option is to run: | ||
|
||
make | ||
``` | ||
make | ||
``` | ||
|
||
That will run the testsuite, rebuild the assets and compile the code into the `./awoo` binary. | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ package chanmsg | |
const ( | ||
Join = iota | ||
SetName | ||
GetRolesets | ||
SetRoleset | ||
PlayerList | ||
Vote | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package roleset | ||
|
||
import ( | ||
"github.com/awoo-detat/awoo/role" | ||
) | ||
|
||
func BasicSeven() *Roleset { | ||
return &Roleset{ | ||
Name: "Basic Seven", | ||
Description: "One wolf, one cultist", | ||
Roles: []*role.Role{ | ||
role.Werewolf(), | ||
role.Cultist(), | ||
role.Villager(), | ||
role.Villager(), | ||
role.Villager(), | ||
role.Villager(), | ||
role.Villager(), | ||
}, | ||
} | ||
} | ||
|
||
func init() { | ||
registerRoleset(BasicSeven()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package roleset | ||
|
||
import ( | ||
"github.com/awoo-detat/awoo/role" | ||
) | ||
|
||
func ImperfectEleven() *Roleset { | ||
return &Roleset{ | ||
Name: "Imperfect Eleven", | ||
Description: "Two wolves and a semblance of balance.", | ||
Roles: []*role.Role{ | ||
role.Werewolf(), | ||
role.Werewolf(), | ||
role.Sorcerer(), | ||
role.Hunter(), | ||
role.Seer(), | ||
role.Villager(), | ||
role.Villager(), | ||
role.Villager(), | ||
role.Villager(), | ||
role.Villager(), | ||
role.Villager(), | ||
}, | ||
} | ||
} | ||
|
||
func init() { | ||
registerRoleset(ImperfectEleven()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package roleset | ||
|
||
import ( | ||
"github.com/awoo-detat/awoo/role" | ||
) | ||
|
||
func LessBasicSeven() *Roleset { | ||
return &Roleset{ | ||
Name: "Less Basic Seven", | ||
Description: "Seer and sorcerer, oh my!", | ||
Roles: []*role.Role{ | ||
role.Werewolf(), | ||
role.Sorcerer(), | ||
role.Seer(), | ||
role.Villager(), | ||
role.Villager(), | ||
role.Villager(), | ||
role.Villager(), | ||
}, | ||
} | ||
} | ||
|
||
func init() { | ||
registerRoleset(LessBasicSeven()) | ||
} |
Oops, something went wrong.