PDA

View Full Version : [COMPLETE] (Program) Yahtzee



beele
June 5th, 2009, 10:58 AM
Hey ;)

It's been a while since I've done anything here, so here I am :)

I've been busy with school the past few months so I haven't been up to finishing some halo stuff (but I will this summer). For object oriented programming we had to make a small game in groups of two persons. I and a friend a mine decided to go for yahtzee.

http://www.beeles-place.be/imgs_and_files/image.JPG

The program is made in eclipse, for use with the JRE (java runtime environment). http://www.java.com/en/download/manual.jsp go here if you have problems after running the installation (game wil not start), download and install the first link on that page.

The source code is included with the installation and is placed in the installation folder in the src directory, you're free to use any of it, but give credit to kevin and marc ;) . It may not be the best written code of all time, but I'm still learning, and thought that I and my friend did a good job with the program. (so did the teacher :)).

Notes:
- RUN THE PROGRAM AS ADMIN, otherwise the highscores will not work (for vista and 7 users).
- the installer package should be in english, but I couldn't test it since the program used to create the msi file, would not let me delete the default dutch language :(.
- I translated the program very fast, so there could be some errors in it :p
- there is one small bug in the code, when you end your game, some graphical glitches may occer on the roll again button, but these will go away when you start a new game.
- The background of the game was made by marc and me, and quickly rendered with his core I7.

DOWNLOAD: http://www.beeles-place.be/scrnsvr_and_setups/yahtzee(EN-US).msi
SOURCE (PDF):http://www.beeles-place.be/leden/Source.pdf =>source from the dutch version, no english GUI!


EDIT: I noticed I forgot to translate "beurt" it means "turn" in english, will update when I get the time for it :p
EDIT2: fixed above.

Limited
June 5th, 2009, 09:54 PM
I havent tested, but props to you for making it in Java. I cant stand Java and developing it in so I feel your pain.

beele
June 6th, 2009, 05:09 AM
I havent tested, but props to you for making it in Java. I cant stand Java and developing it in so I feel your pain.

Especially when making a decent GUI (or trying to make one), I hate javaj ust for how hard it is to make a good working GUI.

Limited
June 6th, 2009, 10:29 AM
Yup definitely. Sadly I'm still not done with mandatory Java learning, although next year it will be more based on mobile phones so it will be more interesting.

I played the game, I dont fully understand the game Yahtzee, but I read your instructions which helped a bit.

Nice work on the game though, is it swing?

Edit. Why exactly did it have to get installed lol? Was that a requirement of your problem statement?

beele
June 6th, 2009, 12:06 PM
Yup definitely. Sadly I'm still not done with mandatory Java learning, although next year it will be more based on mobile phones so it will be more interesting.

I played the game, I dont fully understand the game Yahtzee, but I read your instructions which helped a bit.

Nice work on the game though, is it swing?

Edit. Why exactly did it have to get installed lol? Was that a requirement of your problem statement?

We made the installer as an extra for the teacher, he seemd to like it, I can put the jar file up for downloading too if you want?

And yes that is swing, but we used a program to edit it like in vb, since we first tried it without, and it ended up being a horrible mess.