diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 14:44:51 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 14:50:08 +0200 |
| commit | 20b7135e023c71b84719f8e58df532f2dba0a311 (patch) | |
| tree | 5ff31782d6dde0d3eabd2f79b4e4b34ec696b6dd /go/game/winCondition_test.go | |
| parent | b1f0bfebc5c585e50eb432db8127125bd392a4cd (diff) | |
| download | muhqs-game-go.tar.gz muhqs-game-go.zip | |
add description to wincondition to show the usergo
Diffstat (limited to 'go/game/winCondition_test.go')
| -rw-r--r-- | go/game/winCondition_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/go/game/winCondition_test.go b/go/game/winCondition_test.go index 4ecd472e..c50e9692 100644 --- a/go/game/winCondition_test.go +++ b/go/game/winCondition_test.go @@ -15,13 +15,13 @@ func TestKingGame(t *testing.T) { o := s.AddNewPlayer("o", NewDeck()) k2 := s.addNewUnit(NewCard("misc/king"), Position{1, 1}, o) - w := s._map.WinCondition(s) + w := s._map.WinCondition.check(s) if len(w) != 0 { t.Fatal("winners declared with two kings") } s.destroyPermanent(k2) - w = s._map.WinCondition(s) + w = s._map.WinCondition.check(s) if len(w) != 1 { t.Fatal("winner not declared", w) } @@ -30,7 +30,7 @@ func TestKingGame(t *testing.T) { } s.destroyPermanent(k1) - w = s._map.WinCondition(s) + w = s._map.WinCondition.check(s) if len(w) != 2 { t.Fatal("winners not declared", w) } |
