diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-10 17:14:27 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-10 17:14:27 +0100 |
commit | df9ac938d7f101ffe077751fe2b59a65be940fa8 (patch) | |
tree | 29841267710b73b0e74d675cb9f4da8443047f4a /sw-bot/src/main | |
parent | Better connection logs (diff) | |
download | seven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.tar.gz seven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.tar.bz2 seven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.zip |
Cleanup experimental annotations
Diffstat (limited to 'sw-bot/src/main')
-rw-r--r-- | sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt b/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt index 39759fd0..86ade852 100644 --- a/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt +++ b/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt @@ -11,7 +11,6 @@ import org.luxons.sevenwonders.model.resources.noTransactions import org.luxons.sevenwonders.model.wonders.AssignedWonder import org.slf4j.LoggerFactory import kotlin.random.Random -import kotlin.time.ExperimentalTime private val logger = LoggerFactory.getLogger(SevenWondersBot::class.java) @@ -32,7 +31,6 @@ suspend fun SevenWondersClient.connectBots( config: BotConfig = BotConfig(), ): List<SevenWondersBot> = names.map { connectBot(serverUrl, it, config) } -@OptIn(ExperimentalTime::class) class SevenWondersBot( private val player: ConnectedPlayer, private val config: BotConfig = BotConfig(), @@ -121,7 +119,6 @@ private suspend fun SevenWondersSession.autoPlayTurn(turn: PlayerTurnInfo) { } } -@OptIn(ExperimentalStdlibApi::class) private fun createPlayCardMove(turnInfo: PlayerTurnInfo): PlayerMove { val hand = turnInfo.hand ?: error("Cannot choose move, no hand in current turn info!") val wonderBuildability = turnInfo.wonderBuildability |