TwistedMetalGear
2[H]4U
- Joined
- Jun 19, 2005
- Messages
- 2,445
http://download289.mediafire.com/ngzymgdjrzig/a2xxmqozljb/Risk.zip
(JAR file, you must have Java installed on your computer)
So yeah, my college project for one of my CS classes was to program the game of Risk in Java. Wasn't so bad but was A LOT of work for someone who hasn't done any GUI programming before (which was a majority of the class). We went straight from console programming to this!
It was fun though, I learned a lot in the process and I'm overall satisfied with the end product even though I still consider it to be in "alpha" state.
So yeah I just wanted to share my ghetto little program, get some feedback, comments, flames, whatever!
If you do try it, the following is VERY IMPORTANT:
- Add exactly 3 players. No more!
- Change ClassicRisk.board and ClassicRisk.png to PirateRisk.board and PirateRisk.png. This is my custom plugin that I made in MSPaint and it is a much smaller version of Risk (much easier for testing). If you want an even smaller version, try FishyRisk.board and FishyRisk.png.
- Humans only! My AI works for the most part but I'm having some rare exception issues, so please try an all human game at first. If you care to you can try an all AI game (again, please add exactly 3) and watch the computer play against itself, though it will probably only continue for so long before throwing an exception.
You should be set then. Note the CPU usage when moving the mouse over the map image. Most inefficient highlighting algorithm ever? I think so. But that's because it's traversing through arraylists for each pixel you move the mouse over.
P.S. If you go to Stony Brook and were in this class with me (wouldn't be the first time I met another Stony Brook student on here), post your version as well!
(JAR file, you must have Java installed on your computer)
So yeah, my college project for one of my CS classes was to program the game of Risk in Java. Wasn't so bad but was A LOT of work for someone who hasn't done any GUI programming before (which was a majority of the class). We went straight from console programming to this!
It was fun though, I learned a lot in the process and I'm overall satisfied with the end product even though I still consider it to be in "alpha" state.
So yeah I just wanted to share my ghetto little program, get some feedback, comments, flames, whatever!
If you do try it, the following is VERY IMPORTANT:
- Add exactly 3 players. No more!
- Change ClassicRisk.board and ClassicRisk.png to PirateRisk.board and PirateRisk.png. This is my custom plugin that I made in MSPaint and it is a much smaller version of Risk (much easier for testing). If you want an even smaller version, try FishyRisk.board and FishyRisk.png.
- Humans only! My AI works for the most part but I'm having some rare exception issues, so please try an all human game at first. If you care to you can try an all AI game (again, please add exactly 3) and watch the computer play against itself, though it will probably only continue for so long before throwing an exception.
You should be set then. Note the CPU usage when moving the mouse over the map image. Most inefficient highlighting algorithm ever? I think so. But that's because it's traversing through arraylists for each pixel you move the mouse over.
P.S. If you go to Stony Brook and were in this class with me (wouldn't be the first time I met another Stony Brook student on here), post your version as well!