Some of the savings came from me using a map for t...
# tornadofx
e
Some of the savings came from me using a map for the selections. An important takeaway is that I tried to avoid repeating myself too many times, especially inside the button actions. I also use an
objectBinding
that binds to the
imageProperty
of the image view. Now each button just needs to update the
selectedPieceProperty
instead of actually modifying another UI element. That feels much cleaner to me.