1. Sliding-Puzzle with Scala.js

    JavaFX Version

    This sliding-puzzle started being an experiment to learn the basics of JavaFX. So the first version was desktop-only:


    But at the same time I already had heard of Scala.js, so I took care to make the code modular, separating game-logic from the UI as much as possible.

    JavaScript UI

    During the last DevFest I tried to implement the Scala.js frontend in the course of one afternoon. I made some progress, but was not nearly finished.

    read more
  2. Code Retreat 2013

    Yesterday I attended the global code-retreat 2013 in Vienna, hosted and sponsored by the Frequentis AG, organized by Michael Leber and facilitated by Peter Kofler (aka: the Code Cop).

    The goal of a code-retreat is to have an relaxed environment in which to practice. The focus is not to finish the given problem, but to slow down and try to explore and come up with good solutions. It is done in pairs, and adhering to test-driven-development.

    Developers get together and work on the same problem (typically the “game of life“) the whole day. The day is divided in “sessions”, each one having an unique “constraint” (for example: “don’t talk to your partner, all communication has to be through code”). At the end of each session, the code is deleted (this enormously takes away the focus on finishing) and we stand up to talk and exchange impressions.

    read more
  3. Cooperative word-guessing in Scala

    In our last Scala coding-dojo, we had some fun with word-guessing (think “hangman“, but without hanging anybody ;-).

    The initial problem was like this: I brought game server (running on my laptop) and the task was to implement an interactive console-based client. A simple overview of the client logic can be illustrated like this:


    Actually it was an Akka-based word-guessing server, for which I provided the bare-bones client project, which already came with the Akka-messages, the setup, and the message processing loop.

    read more

« Page 2 / 2