@Composable
private fun tileButton(
isVisible: MutableState<Boolean> = mutableStateOf(false),
turn: MutableState<Int> = mutableStateOf(0)
) = Button(
onClick = {
isVisible.value = true
turn.value += 1
},
border = BorderStroke(0.dp, accentAmber),
shape = RectangleShape,
colors = ButtonDefaults.buttonColors(accentAmber),
modifier = Modifier.size(60.dp).padding(0.dp),
) {
Box(Modifier.drawWithContent {
drawLine(
color = Color.Black,
start = Offset(center.x, -200F),
end = Offset(center.x, 200F),
strokeWidth = 2f,
cap = StrokeCap.Round
)
drawLine(
color = Color.Black,
start = Offset(-200F, center.y),
end = Offset(200F, center.y),
strokeWidth = 2f,
cap = StrokeCap.Round
)
if (isVisible.value) drawCircle(if (turn.value % 2 == 0) Color.Black else Color.White, radius = 55f)
})
}