Skip to content

Instantly share code, notes, and snippets.

@zsoltk
Created July 31, 2021 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zsoltk/16996784080179d594a30bc2805f348a to your computer and use it in GitHub Desktop.
Save zsoltk/16996784080179d594a30bc2805f348a to your computer and use it in GitHub Desktop.
object DefaultSquareRenderer : SquareRenderer {
override val decorations: List<SquareDecoration> =
listOf(
DefaultSquareBackground,
DefaultHighlightSquare,
DefaultSquarePositionLabel,
DatasetVisualiser,
TargetMarks
)
}
object DefaultBoardRenderer : BoardRenderer {
override val decorations: List<BoardDecoration> =
listOf(
DecoratedSquares(DefaultSquareRenderer.decorations),
Pieces
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment