• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Dice Game  RSS feed

 
Kyle Jones
Ranch Hand
Posts: 46
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to build up a portfolio of basic projects to put on my resume and came across this on freelancer.com

I am a new member there & no experience so dont think ill win any bids but I want to do this project myself anyway.

Here's the project outline:

Project Description: 
Hi I want some one to make a simple object-oriented dice game to me in java programming. 



A simple game where the user is playing a dice game with the computer. You have two dices each and throw them, the highest dice wins of the four dices. 

You have to insert money first, max 500, and then you can bet money, you can only bet 100 at a time, and if you win you get 100 more and if you lose you lose 100. And if you have no money left you have to insert another 500. After each round the game ask if you want to quit or continue. If you want to continue you bet again if you have money left or you have to insert more if you dont.


Requirements:

Each class must be focused and have a clear purpose. Also, to minimize the number of dependencies between objects.

The demands placed on your design is that it should be object-oriented, and that it shall use 
inheritance, encapsulation and polymorphism and / or interface.

Also

The graphical interface should be responsive. The program should, in other words do not end up in deadlocks and it should not be long response or waiting periods without clear feedback to the user. 
Each class should have a clear purpose and the number of dependencies should be kept low. 
Methods should have a clear purpose and only one purpose, and they should be kept short.



I want this done in 2-3 days as fast as possible with a lot of comment of everything you have done. Also comment a lot where the requirements are. This should be sent in eclipse zip-file.
Skills required:
Java


I think I should be able to complete the project without too much stress except the part about the GUI.

My question is from your reading of the description what kind of GUI would be needed & at what difficulty for this?

Any info appreciated
 
Paweł Baczyński
Bartender
Posts: 2087
44
Firefox Browser IntelliJ IDE Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My first advice. Don't worry about GUI yet. Write your game logic in such a way that it is independent from any GUI.
And when you do that and you are 100% sure that it works correctly then write your GUI.
And the options for GUI are Swing or Java FX (in Java 8). Well... You could make your game playable on a webpage. Or a mobile device ;).
I have no experience in Java FX so I don't know if I can recommend it.
 
Kyle Jones
Ranch Hand
Posts: 46
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pawel Pawlowicz wrote:My first advice. Don't worry about GUI yet. Write your game logic in such a way that it is independent from any GUI.
And when you do that and you are 100% sure that it works correctly then write your GUI.
And the options for GUI are Swing or Java FX (in Java 8). Well... You could make your game playable on a webpage. Or a mobile device ;).
I have no experience in Java FX so I don't know if I can recommend it.


OK thanks, will get the game logic done first and then worry about GUI
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!