From 204cb81f8ca7811547a1c2ad5736f65930d55097 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Thu, 21 Jan 2016 20:42:39 +0700 Subject: [PATCH] atomic rules --- app/controllers/Page.scala | 2 ++ app/views/game/variantLink.scala.html | 2 +- conf/routes | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/Page.scala b/app/controllers/Page.scala index 209bc3d06a..140550b8ce 100644 --- a/app/controllers/Page.scala +++ b/app/controllers/Page.scala @@ -25,6 +25,8 @@ object Page extends LilaController { def kingOfTheHill = page("king-of-the-hill") + def atomic = page("atomic") + def racingKings = page("racing-kings") def crazyhouse = page("crazyhouse") diff --git a/app/views/game/variantLink.scala.html b/app/views/game/variantLink.scala.html index 47bb1bf2ec..dd8ab54f92 100644 --- a/app/views/game/variantLink.scala.html +++ b/app/views/game/variantLink.scala.html @@ -7,7 +7,7 @@ case chess.variant.KingOfTheHill => {@routes.Page.kingOfTheHill} case chess.variant.ThreeCheck => {http://en.wikipedia.org/wiki/Three-check_chess} case chess.variant.Antichess => {http://en.wikipedia.org/wiki/Losing_chess} case chess.variant.FromPosition => {@routes.Editor.index?fen=@initialFen.map(_.replace(" ", "_"))} -case chess.variant.Atomic => {http://www.freechess.org/Help/HelpFiles/atomic.html} +case chess.variant.Atomic => {@routes.Page.atomic} case chess.variant.Horde => {http://en.wikipedia.org/wiki/Dunsany%27s_chess#Horde_variant} case chess.variant.RacingKings => {@routes.Page.racingKings} case chess.variant.Crazyhouse => {@routes.Page.crazyhouse} diff --git a/conf/routes b/conf/routes index bb77dfe78d..702090a076 100644 --- a/conf/routes +++ b/conf/routes @@ -395,6 +395,7 @@ GET /terms-of-service controllers.Page.tos GET /how-to-stream-on-lichess controllers.Page.streamHowTo GET /contact controllers.Page.contact GET /king-of-the-hill controllers.Page.kingOfTheHill +GET /atomic controllers.Page.atomic GET /racing-kings controllers.Page.racingKings GET /crazyhouse controllers.Page.crazyhouse GET /privacy controllers.Page.privacy