
com.netsensia.rivalchess.example.Example.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rivalchess-engine Show documentation
Show all versions of rivalchess-engine Show documentation
The engine used by Rival Chess
package com.netsensia.rivalchess.example
import com.netsensia.rivalchess.engine.search.Search
import com.netsensia.rivalchess.model.Board
@kotlin.ExperimentalUnsignedTypes
fun main(args: Array) {
val board = Board.fromFen("6k1/6p1/1p2q2p/1p5P/1P3RP1/2PK1B2/1r2N3/8 b - g3 5 56")
val searcher = Search(board)
searcher.setMillisToThink(5000)
searcher.setNodesToSearch(Int.MAX_VALUE)
searcher.setSearchDepth(5)
searcher.go()
println("Path = ${searcher.currentPath}")
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy