diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-01-31 00:16:53 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:45 +0100 |
| commit | e6a1bb4ba06361abdc2cf1bed4041fe3013b188b (patch) | |
| tree | c329a9d8d071bd2a5e3d6b5bb531da67ece2b227 /go/game/winCondition.go | |
| parent | 24cea3f7c1e3679ba19ed1d49674e1228eb50ce1 (diff) | |
| download | muhqs-game-e6a1bb4ba06361abdc2cf1bed4041fe3013b188b.tar.gz muhqs-game-e6a1bb4ba06361abdc2cf1bed4041fe3013b188b.zip | |
intermediate commit
Diffstat (limited to 'go/game/winCondition.go')
| -rw-r--r-- | go/game/winCondition.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/go/game/winCondition.go b/go/game/winCondition.go index fa07257f..4db36e1d 100644 --- a/go/game/winCondition.go +++ b/go/game/winCondition.go @@ -7,11 +7,11 @@ import ( func KingGame(s *State) []*Player { foundKings := map[*Player]struct{}{} for _, u := range s.Units { - if u.Card.Name != "King" { + if u.card.Name != "King" { continue } - foundKings[u.Owner] = struct{}{} + foundKings[u.owner] = struct{}{} } if len(foundKings) == len(s.Players) { |
