From df9ac938d7f101ffe077751fe2b59a65be940fa8 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Wed, 10 Feb 2021 17:14:27 +0100 Subject: Cleanup experimental annotations --- sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt | 3 --- 1 file changed, 3 deletions(-) (limited to 'sw-bot/src/main/kotlin') 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 = 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 -- cgit