GameOverView

scalata.infrastructure.view.terminal.GameOverView
class GameOverView[F[_]](val view: GameView[F, String])(implicit evidence$1: Sync[F]) extends View[GameOverView[F], String, Boolean, String, F]

Game over screen.

The view extends the generic View template, supplying: • an ASCII banner that lists available possible inputs; • a parse implementation that maps raw user input.

Type parameters

F

effect type (e.g. IO)

Value parameters

view

low-level GameView through which all rendering and input occur (dependency-injected so that we stay UI-agnostic).

Attributes

Graph
Supertypes
trait View[GameOverView[F], String, Boolean, String, F]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override protected def parse(raw: String): Option[Boolean]

Attributes

Definition Classes

Inherited methods

def ask: F[Boolean]

Show banner once, then enter retry loop.

Show banner once, then enter retry loop.

Attributes

Inherited from:
View

Concrete fields

val view: GameView[F, String]