consider games from position as chess960 for stockfish
parent
15811b0ea0
commit
d112fb1947
|
@ -11,13 +11,14 @@ import play.api.Play.current
|
|||
import actorApi._
|
||||
import chess.format.Forsyth
|
||||
import chess.format.UciDump
|
||||
import chess.Variant.Chess960
|
||||
import lila.analyse.AnalysisMaker
|
||||
|
||||
private[ai] final class Server(queue: ActorRef, config: Config) {
|
||||
|
||||
def play(pgn: String, initialFen: Option[String], level: Int): Fu[String] = {
|
||||
implicit val timeout = makeTimeout(config.playTimeout)
|
||||
UciDump(pgn, initialFen).future flatMap { moves ⇒
|
||||
UciDump(pgn, initialFen, initialFen.isDefined option Chess960).future flatMap { moves ⇒
|
||||
queue ? PlayReq(moves, initialFen map chess960Fen, level) mapTo
|
||||
manifest[Valid[String]] flatMap (_.future)
|
||||
}
|
||||
|
@ -25,7 +26,7 @@ private[ai] final class Server(queue: ActorRef, config: Config) {
|
|||
|
||||
def analyse(pgn: String, initialFen: Option[String]): Fu[AnalysisMaker] = {
|
||||
implicit val timeout = makeTimeout(config.analyseTimeout)
|
||||
UciDump(pgn, initialFen).future flatMap { moves ⇒
|
||||
UciDump(pgn, initialFen, initialFen.isDefined option Chess960).future flatMap { moves ⇒
|
||||
queue ? FullAnalReq(moves, initialFen map chess960Fen) mapTo
|
||||
manifest[Valid[AnalysisMaker]] flatMap (_.future)
|
||||
}
|
||||
|
|
8
todo
8
todo
|
@ -62,6 +62,14 @@ IE10 no sound toggle http://en.lichess.org/forum/lichess-feedback/notification-o
|
|||
filter current games for watching http://en.lichess.org/forum/lichess-feedback/viewing-current-games-suggestion#2
|
||||
declined challenge still appears
|
||||
no time data http://en.lichess.org/x9tls3mh/stats
|
||||
show rated games to anon
|
||||
improve game filter UI
|
||||
games that have no room to show up never appear
|
||||
second realtime board on homepage (right)
|
||||
show friend games in homepage board
|
||||
allow to filter anon
|
||||
add fast tooltips to plots
|
||||
from position castle blocks http://en.lichess.org/rdbx7laaczj8
|
||||
|
||||
---
|
||||
|
||||
|
|
Loading…
Reference in New Issue