Talk:Thoughts Around Making a Turn Based Strategy Game/@comment-75.139.82.189-20140324035204/@comment-24224446-20140324051237

Making a linked list in Spark is similar to coding up your own linked list in other languages. You need to define an object to represent the "head" of the list, and have each object in the list keep track of what is after it (and before if you want a doubly linked list). Object variables are basically just object pointers.

You will want to make sure that you keep track of the length of the list though. Since spark doesn't have a while loop, it is nice to know for how long you will need to loop.

I can kode up a linked list implementation and put it on Kode share if there is interest.

What in particular about the hexagons are you interested in? I can design a hexagonal grid (after consulting some math info) but as I mentioned, the placement of objects is going to be painful.