This file contains hidden or 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
| 0xEa8eEFB0b08c56787aAAaC9bA08C79e507b07CE9 |
This file contains hidden or 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
| 0xe4fc66037B45F40fE216c363DC582Ab6022A2484 |
This file contains hidden or 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
| 0xCdE4faE237461e4eC3Da70A23Dcc9e9b58A6DC9e |
This file contains hidden or 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
| /** | |
| * Rejection rules for a single piece | |
| * @param ort it blocks vertical and horizontal | |
| * @param diag it blocks diagonals | |
| * @param squares it blocks concrete squares: close area for King, two ways to attack for Peasant, 8 squares for Horse | |
| */ | |
| case class Rules(ort: Boolean, diag: Boolean, squares: (Int, Int)*) { | |
| /** | |
| * Cached map of paired rules | |
| */ |
This file contains hidden or 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 play.api.libs.json._ | |
| import play.modules.reactivemongo.json.ImplicitBSONHandlers._ | |
| import reactivemongo.bson.BSONDocument | |
| trait PersistentJson extends akka.persistence.PersistentActor { | |
| private[this] var classMap: Map[Manifest[_], Writes[_]] = Map.empty | |
| private[this] var namesMap: Map[String, Reads[_]] = Map.empty | |
| case class ClassFormat[T](cls: Class[T], format: Format[T]) |
This file contains hidden or 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
| package content | |
| import play.api.mvc.MultipartFormData | |
| import play.api.libs.Files | |
| import play.modules.reactivemongo.ReactiveMongoPlugin | |
| import reactivemongo.api.gridfs.GridFS | |
| import user.ProfileId | |
| import scala.concurrent.Future | |
| import reactivemongo.bson._ | |
| import java.io.{InputStream, FileInputStream} |
This file contains hidden or 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
| package content | |
| import play.api.mvc.MultipartFormData | |
| import play.api.libs.Files | |
| import play.modules.reactivemongo.ReactiveMongoPlugin | |
| import reactivemongo.api.gridfs.GridFS | |
| import user.ProfileId | |
| import scala.concurrent.Future | |
| import reactivemongo.bson.{BSONDocument, BSONObjectID} | |
| import java.io.{InputStream, FileInputStream} |