Prepare for epic deploy

This commit is contained in:
Thibault Duplessis 2012-05-28 17:50:35 +02:00
parent edb417bac3
commit 4999e46cc2
3 changed files with 6 additions and 9 deletions

View file

@ -66,9 +66,9 @@ object Cron {
}
}
//effect(1 hour) {
//env.gameFinishCommand.apply
//}
effect(1 hour) {
env.gameFinishCommand.apply
}
effect(1 minute) {
env.ai.remoteAi.diagnose

View file

@ -44,7 +44,9 @@ final class Store(collection: MongoCollection) {
date: DateTime)
def userInfo(username: String): Option[Info] = for {
obj collection.findOne(DBObject("user" -> normalize(username)))
obj collection.find(
DBObject("user" -> normalize(username))
).sort(DBObject("date" -> -1)).limit(1).toList.headOption
ip obj.getAs[String]("ip")
ua obj.getAs[String]("ua")
date obj.getAs[DateTime]("date")

5
todo
View file

@ -1,19 +1,14 @@
ping nbm
extract chess
chat should autoscroll only when at bottom
back button to game -> old status
finish flagged game
It's possible to join your own game and win it, which will then be displayed as a win and I saw players who abuse this to manipulate their stats.
hide logout button
forms that validate while constructing the object
player timeout depending on game duration
chess captcha is broken sometimes curl localhost:9000/api/captcha/solve/36yabr3t
do not count games vs engine as win/loss
prevent cheaters from joining the game
translate "view rematch"
translate clock name
start chess960 after both player move http://fr.lichess.org/forum/lichess-feedback/clock-fairness-in-chess960-games
elo floor 800
prevent round watcher/player response client caching
user info is expensive - cache it
chess960 confirmation http://fr.lichess.org/forum/lichess-feedback/separate-960-lobby?page=1#7