Package-level declarations

Overview

End game screen displaying final results, winner announcement, and options to play again.

Responsibilities

  • Showing winner and final scores

  • Displaying game statistics

  • Offering options to return to menu or start a new game

Types

Link copied to clipboard
class WinnerPageViewModel(val scope: CoroutineScope, val game: Game, val globalError: ReversiException?, val setGlobalError: (Exception?, ErrorType?) -> Unit) : ViewModel<WinnerUiState>
Link copied to clipboard
data class WinnerUiState(val screenState: ScreenState = ScreenState(), val winner: Player? = null, val gameName: String? = null, val onLeave: suspend () -> Unit) : UiState

Functions

Link copied to clipboard
@Composable
fun ReversiScope.DrawPlayerInfo(player: Player)
Link copied to clipboard
@Composable
fun ReversiScope.PlayerResultColumn(player: Player, isWinner: Boolean, modifier: Modifier = Modifier)
Link copied to clipboard
Link copied to clipboard
@Composable
fun ReversiScope.WinnerPage(viewModel: WinnerPageViewModel, onLeave: () -> Unit)