Skip to content

Commit

Permalink
compress lastMove string
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Oct 12, 2012
1 parent ac736ec commit 08cc963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/History.scala
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ object History {

val hashSize = 5

val MoveString = """^([a-h][1-8]) ([a-h][1-8])$""".r
val MoveString = """^([a-h][1-8])([a-h][1-8])$""".r

def apply(
lastMove: Option[String], // a2 a4
lastMove: Option[String], // a2a4
positionHashes: String, // KQkq
castles: String) = new History(
lastMove = lastMove flatMap {
Expand Down

0 comments on commit 08cc963

Please sign in to comment.