b0n541 / jskat

JSkat is a free software implementation of the game Skat in Java.
https://www.jskat.org
Apache License 2.0
32 stars 16 forks source link

Migrate JSkat base module to Kotlin #86

Open b0n541 opened 4 years ago

b0n541 commented 4 years ago

Kotlin enables multiplatform re-use of JSkat base code not limited to Android. Kotlin leads to less boiler plate code that is easier to read. Kotlin is also more fun.

b0n541 commented 4 years ago

One good start would be migration of all events and commands for the event busses to Kotlin data classes. Another starting point is the big mutable SkatGameData class. This one should be converted into an immutable data class with copy() operations to create the next iteration after a player did a move.