Qortra Matthias ([info]qortra) wrote,
@ 2004-03-04 23:20:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Java Settlers of Catan
So earlier I mentioned Gnocatan, the GTK adaptation of Settlers of Catan. At Raistlin's suggestion, I started coding an all java version of the game. Note that there is also a web-based non-free Java version floating around somewhere. However, I wanted something to code, and having a GPLed Java version of the game is excuse enough.

Settlers of Catan uses hexagonal shapes to make a seamless (and also hexagonal) playing board. Interestingly, my code so far has been independent of the number of sides of each piece. It creates the board from the center outward and stops when the specified number of pieces is reached.

I'm fairly sure that my algorithm creates the board properly with six sides (that is to say, according to the board game specifications). However, I haven't yet figured out what it does for non-six-sided figures. I suspect that it will make multidimensional (>2) shapes with sides>6. I envisioned a recursively bulbous sphere for eight-sided pieces, but I have no way to tell if that's accurate. Maybe somebody with outstanding spacial visualization and an understanding of java can help me.

Also, thanks to albatrosslove for the great new look! I love it.



(Post a new comment)


[info]raistlinsb
2004-03-05 06:37 am UTC (link)
I'd like to look at the code at some point, if you want to send it to me via email or something.

(Reply to this)


[info]albatrosslove
2004-03-05 01:01 pm UTC (link)
you are very welcome

(Reply to this)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…