| Qortra Matthias ( @ 2004-03-04 23:20:00 |
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.
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.