class SimpleTicTacToe:App(SimpleTicTacToeGrid::class) class SimpleTicTacToeGrid : View("Simple Tic Tac Toe") { override val root = gridpane { row { SimpleTicTacToeCell() SimpleTicTacToeCell() SimpleTicTacToeCell() } row { SimpleTicTacToeCell() SimpleTicTacToeCell() SimpleTicTacToeCell() } row { SimpleTicTacToeCell() SimpleTicTacToeCell() SimpleTicTacToeCell() } } } class SimpleTicTacToeCell : View() { override val root = stackpane { group { rectangle { width = 50.0 height = 50.0 arcWidth = 15.0 arcHeight = 15.0 fill = Color.BLACK } rectangle { x = 5.0 y = 5.0 width = 40.0 height = 40.0 arcWidth = 15.0 arcHeight = 15.0 fill = Color.WHITE } } } }