commonMain.ro.dragossusi.sevens.ai.brain.AiBrain.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ai-jvm Show documentation
Show all versions of ai-jvm Show documentation
AI classes used in sevens
package ro.dragossusi.sevens.ai.brain
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import ro.dragossusi.sevens.game.listener.PlayerListener
import kotlin.coroutines.CoroutineContext
abstract class AiBrain(
dispather: CoroutineDispatcher
) : PlayerListener, CoroutineScope {
private val job = Job()
final override val coroutineContext: CoroutineContext = dispather + job
}