Results 1 to 9 of 9
  1. #1
    mikelmb is offline Member
    Join Date
    May 2014
    Posts
    7
    Rep Power
    0

    Default java final project

    hi guys.
    I know most of you will think of me as a lazy person following the question im going to ask, but please dont be judgmental. if you are able to help me, dont hesitate! at some points, we all need help and it happens that im in that position.

    so I have this java project to finish in 3 days and it's the most important module im doing at uni. i passed the class tests and i need to submit a project in 3 days otherwise i wont get a place at uni next year.

    okay here is the project specification:

    You are required to write a simple program that simulates a game of darts. In this, two (or more)
    players take turns to “throw“ three darts to reduce their score from 501 down to zero. Each dart
    thrown will be simulated by a pair of numbers – the first is the number scored (1-20, 25, 50), the
    second indicates a single double or treble if one is possible (note that 25 or 50 are always singles, so
    the first number will dictate whether the second value is necessary). After three throws, the full score
    will be deducted from 501. The first player to zero wins. However, as with real darts, the final dart
    must be a double or bullseye (50), and must exactly clear the remaining score. If too much is scored,
    the player is out for that turn, and must try again after the other players have had a turn.
    On-screen, each turn should generate:
    1. Each of the three Throws’ scores, with doubles and trebles included
    2. The total score achieved in a Turn, by summing all three
    3. The remaining score, having deducted from the total at each turn
    4. An indication of ‘bust’ if the player ‘s darts total more than the remaining score, or ‘win’ if the
    player has got out with a double or bullseye (note that if the player gets out on the first or
    second dart, this is a win – the remaining dart(s) do not need to be thrown).

    can anyone help me do this?
    i have been to do it but it seems to be impossible for me!
    help me please!
    thanks

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default Re: java final project

    What have you tried?
    What problems are you having with the assignment?
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    mikelmb is offline Member
    Join Date
    May 2014
    Posts
    7
    Rep Power
    0

    Default Re: java final project

    I have been trying to create different classes. but it is hard to develop them.
    the problem im having is I really dont know much about java.
    if there is anyone willing to help, i'll be grateful forever.

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default Re: java final project

    I really dont know much about java.
    How did you get this assignment with that background?
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    mikelmb is offline Member
    Join Date
    May 2014
    Posts
    7
    Rep Power
    0

    Default Re: java final project

    im doing an exchange program at the uni im at.
    i wasnt expecting this module (programming) when I started the program.
    but I had no option.
    so I have to submit the project or I will fail this year.
    sorry for the english. im a french born

  6. #6
    mikelmb is offline Member
    Join Date
    May 2014
    Posts
    7
    Rep Power
    0

    Default Re: java final project

    i'm trying to do the best i can, im reading books and books, trying to do excercises but it's not happening at all.
    and I have to pass, so i thought I could get some help here.
    dont get me wrong please!
    i'm actually a good student but im just not good at programming.

  7. #7
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default Re: java final project

    Start by making a list of simple steps the program needs to take to solve the problem. Then start with the first item in the list and work on that.
    If you don't understand my response, don't ignore it, ask a question.

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,016
    Rep Power
    20

    Default Re: java final project

    As Norm says, break it down.
    Strip out the complexity as well.
    In this case I would forget about scores of 25 or 50, as well as doubles and trebles.
    Just write a method that represents the throw of a single dart, returning a score of 1-20.
    Then write a method that represents a turn, which calls your throwDart method 3 times, summing up the total and returning that value.

    Those two methods will give you the basis of your app.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  9. #9
    mikelmb is offline Member
    Join Date
    May 2014
    Posts
    7
    Rep Power
    0

    Default Re: java final project

    thank you guys.
    now I have a idea of what to do and how to do it.
    thanks to all of you.

Similar Threads

  1. Final Java Project
    By ExX in forum New To Java
    Replies: 1
    Last Post: 05-06-2012, 09:57 AM
  2. Replies: 8
    Last Post: 12-06-2011, 01:14 AM
  3. Java's Class Final Project - Tower Defense
    By lastpirate89 in forum New To Java
    Replies: 6
    Last Post: 05-11-2011, 03:04 PM
  4. Replies: 0
    Last Post: 07-09-2009, 12:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •