refresh

fun refresh(board: Board): Player

Updates the player's points based on the current board state.

Return

A new Player instance with updated points matching the board's piece count.

Parameters

board

The current board state.