/Lift-Draughts

A simple draughts UI that is written in Javascript / Scala / Lift / HTML5.

Primary LanguageScala

Lift-Draughts

A simple draughts UI that is written in Javascript, Scala, HTML5 and the Lift-framework. It is an extension of a draughts game that was developed during the SWTPra 2011 (see http://goo.gl/1TFn8) by our group Nostradames. Lift-Draughts was developed originally to see how easy it would be to port an Eclipse (GEF) and RMI based application to a web application using most of the original java code. The answer is: It's pretty easy! Moreover I used this project to increase my own skills relating to the Scala language and the Lift-framework. The following features are implemented at this time:

  • user interface written in Javascript using HTML5 canvas,
  • start a new game directly in your browser,
  • play with friends easily just by sending a link to them
  • many different types of games are supported (3x7, 5x5 and 10x10 fields with optional row size)

Running the application is very simple by using the following command-line inside the project's directory.

./sbt update ~jetty-run

Then use your favorite browser to open the url http://127.0.0.1:8080. After the start screen of Lift-Draughts appeared, choose a name for your game and open it by clicking on the 'Open Game' button. Next you can invite a friend for a draughts game by sharing the shown link. If your opponent is ready just press the 'Start Game' button in order to start the game. Have fun!

Note that this project cannot be started without the original draughts game!