Scala + Android just got easy
(For real this time!)

Anyone who has tried it knows that Scala programming for android has quite a bit more complexity to it than doing a standard Java development. This link shows a nice and easy way (through an apparently new proguard plugin) to create and deploy a scala app + shrunken library with the Eclipse Scala IDE.

What are you waiting for? I know I was just waiting for Scala+Android maturity before starting a nice new android project :) Go go go!

 

Grid computing using Scala

There have been some nice additions to the Scala collections with the parallel versions of standard data structures. These work fine for shared memory architectures, however, means for distributed memory parallelization seem to be very scarce and fragmented.
During a course at my university, I worked on the development of a general framework for distributed parallelization using Scala and MPJ-Express. Continue reading

 

Still worth checking out

So, you havent tried scala yet, and don’t feel like installing it on your system. Go to http://www.simplyscala.com/ and give it a go. I started there myself and ran through the entire tutorial one night. After this I was hooked.
Too bad nothing can be done about the horrible colors on the page, but one must suffer to learn :)

 

Flood-It

This week I sumbled upon Flood-It on google+. It’s a nice little game where you try to flood a grid with a single color by swapping colors until all neighbours are consumed. After playing it for a while, i figured it was more fun to implement a strategy than to apply it manually and thus I began coding.

I completed the code with a niftly little interface to support dynamic loading of new strategies.

When I get some feedback I’ll upload the program with source code to this blog. In the mean time, you can follow me on g+.

 

A Tetris Game in Scala



The Why?

My brother is working on a small game project during this summer, so I wanted to test out Slick2D to help him a little. I decided to do a small Tetris game and ended up having 5 essential classes, some medium sized, and some small. Here I will share a few of the tricks used in the game.

Instead of explaining the boring logic of the game, I will present to you some handy Scala functionality that I was using for the code. These are things I deem to be highly relevant for Scala programmers.
Continue reading