Skip to content

Commit

Permalink
Support multiple network players.
Browse files Browse the repository at this point in the history
Yucky hacky lobby.
  • Loading branch information
blynn committed Oct 2, 2012
1 parent acfe08a commit 64fd85e
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 49 deletions.
2 changes: 1 addition & 1 deletion cards_base.go
Expand Up @@ -166,7 +166,7 @@ Adventurer,6,Action
if len(loot) > 0 {
c := loot[0]
game.TrashCard(other, c)
if c.supply > 0 && game.getBool(p, "gain " + c.name + "?") {
if c.supply > 0 && game.getBool(p, "gain "+c.name+"?") {
game.Gain(p, c)
}
}
Expand Down
2 changes: 1 addition & 1 deletion cards_intrigue.go
Expand Up @@ -71,7 +71,7 @@ Nobles,6,Action-Victory,#2
}
}
for i := 0; i < m; i++ {
j := (i+1) % m
j := (i + 1) % m
left := game.players[j]
left.hand = append(left.hand, a[i])
// TODO: Report the gained card.
Expand Down

0 comments on commit 64fd85e

Please sign in to comment.