#include "gtest/gtest.h" // // Created by sebastian on 05.08.26. // #include "helpers/SequenceDiceSource.h" #include "ludo/LudoGameMode.h" TEST(LudoGameMode, SecondSixMovesOutOfBlockedEntry) { ludo::LudoGameMode mode({0}); // ein Spieler reicht zum Isolieren mode.setDiceSource(std::make_unique(std::vector{6,6})); mode.sendCommand(ludo::RollDiceCommand{0}); ASSERT_EQ(mode.getCurrentPlayer(), 0u) << "Spieler sollte nach Extra-Turn gleich bleiben"; ASSERT_EQ(mode.getState().getPhase(), ludo::TurnPhase::AwaitingRoll); mode.sendCommand(ludo::RollDiceCommand{0}); EXPECT_EQ(mode.getState().getPhase(), ludo::TurnPhase::AwaitingPieceSelection) << "Erwartet: Figur-Auswahl, da Entry blockiert"; }