First round of substantial bug fixes

This commit is contained in:
2023-04-02 19:25:53 -07:00
parent 0f21020647
commit 9796c2e970
4 changed files with 38 additions and 7 deletions

View File

@ -8,13 +8,14 @@ import (
)
func RunSimpleTerminalUI[C StatsCollection](p *Player[C]) error {
for {
err := p.StartNextTurn()
if p.DebugLevel < 1 && IsSeriousError(err) {
return err
}
p.ReportError(err)
err := p.StartNextTurn()
if p.DebugLevel < 1 && IsSeriousError(err) {
return err
}
p.ReportError(err)
for {
for p.CanAct() {
isCard, cardIdx, choiceIdx, err := pickNextAction(p)
p.ReportError(err)