Thursday, October 28, 2010

For loop iteration in Scala

The Scala for loop notation:
for (i<-0 until some.length)


basically means, in java-ish code:
for (int i=0; i < some.length; i++)

So, the reason we were only getting a 7x7 board was because Scala iterates using the "until" as non-inclusive to the some.length (i.e. less than).

Monday, October 25, 2010

Val vs Var

Just did some research on this....

val is used for immutable values (those which cannot be changed *cough* Java final variables)

var is mutable.

Sunday, October 10, 2010

Static methods/fields

While trying to take a first stab at porting JustCheckers.java -> JustCheckers.scala, we ran into static methods and fields. The problem is, Scala does not have static methods/fields. We are currently trying to figure out how to best handle static in Scala...

Wednesday, October 6, 2010

Introduction

Well, here we are, starting our adventure in porting the java Just Checkers implementation into Scala.... We'll see how it goes...