This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Piece.Companion.fromNotation | |
// Chess game | |
// Load state of Game | |
val notation = listOf("pa3", "qc5") | |
fun main() { | |
val toPieceTypeContext = object : ToPieceTypeContext { | |
override val charToPieceType = super.charToPieceType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import okhttp3.* | |
import okhttp3.internal.closeQuietly | |
import org.junit.Test | |
import java.io.File | |
import java.io.IOException | |
import java.util.concurrent.TimeUnit | |
class CacheTest { | |
@Test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import okhttp3.Cache | |
import okhttp3.OkHttpClient | |
import okhttp3.Request | |
import org.junit.Test | |
import java.io.File | |
class CacheTest { | |
@Test | |
fun test() { | |
val directory = File("./cache") |