Hey Keno!
You’re definitely on the right path here, but the error in Android Studio about not being able to find AI.basicAI
is incorrectly flagged. That being said, I like using AI.getBasicAI()
to avoid this kind of confusion.
Looking at the Java code is the right approach as Kotlin properties are converted in the fashion you saw. This means properties of a Kotlin class are accessed on the Java side by get()/set()
methods.
I’m going to switch up the code and include a little note explaining the difference here. Thanks!