TargetButton

@Composable
fun ReversiScope.TargetButton(target: Boolean, modifier: Modifier = Modifier, freeze: Boolean, onClick: () -> Unit)

Toggle button for target mode, showing available moves on the board. Displays "Target ON" or "Target OFF" based on the current state.

Parameters

target

Whether target mode is currently enabled.

modifier

Optional composable modifier for layout adjustments.

freeze

Whether the button is disabled due to game frozen state.

onClick

Callback invoked when the button is clicked.