diff --git a/cardsim/terminalui.go b/cardsim/terminalui.go index 0f32ccf..11afa70 100644 --- a/cardsim/terminalui.go +++ b/cardsim/terminalui.go @@ -135,7 +135,7 @@ func pickNextAction[C StatsCollection](p *Player[C]) (isCard bool, cardIdx int, cls() displayOnePanel(p, p.InfoPanels[i-1]) wait() - } else if i < handOffset { + } else if i <= handOffset { i = i - actionsOffset - 1 option, promptErr := promptCard(p, p.PermanentActions[i]) if option >= 0 || IsSeriousError(promptErr) { diff --git a/smoketest/main.go b/smoketest/main.go index e27f6f3..9229ea1 100644 --- a/smoketest/main.go +++ b/smoketest/main.go @@ -54,7 +54,7 @@ func main() { type prompt struct{} func (prompt) Title(p *cardsim.Player[*SmokeTestCollection]) cardsim.Message { - return cardsim.MsgStr("Prompt title -- should not be visible?") + return cardsim.MsgStr("Smoke Test") } func (prompt) Info(p *cardsim.Player[*SmokeTestCollection]) ([]cardsim.Message, error) {