GameOverUseCase

scalata.application.usecases.GameOverUseCase

Handles the Game Over prompt (“Restart?”).

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def gameOver[F[_] : Monad](input: F[Boolean], gameBuilder: GameBuilder): F[GameResult[(GameControllerState, GameBuilder)]]

Evaluate the player’s choice and emit the next step.

Evaluate the player’s choice and emit the next step.

Type parameters

F

effect type with a cats.Monad instance

Value parameters

gameBuilder

builder carried forward when the game restarts

input

effect that yields true to restart or false to quit

Attributes