Skip to content

Commit

Permalink
fix UCI dump castle with game from position
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Oct 2, 2013
1 parent 702e909 commit dde9ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/format/UciDump.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object UciDump {
def move(variant: Variant)(m: Move): String = m.castle.fold(
m.orig.key + m.dest.key + m.promotion.fold("")(_.forsyth.toString)
) {
case ((kf, kt), (rf, rt)) if kf == kt || variant == Variant.Chess960 kf.key + rf.key
case ((kf, kt), (rf, rt)) if kf == kt || !variant.standard kf.key + rf.key
case ((kf, kt), _) kf.key + kt.key
}
}

0 comments on commit dde9ed5

Please sign in to comment.