Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Horse Racing game

  1. #1
    Junior Member
    Join Date
    Jun 2013
    Location
    Philippines
    Posts
    7
    My Mood
    Confused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Horse Racing game

    can somebody tell me how should be the codes of 5 horses running randomly.
    the output seems to be like this


    EX.
    |.......J
    |..C
    |..............A
    |.......... M
    |.........S

    then the winner is Horse A.
    please please please


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Horse Racing game

    Looks like a tie to me.
    Better explain exactly what the plan is, and what you are stuck on

  3. #3
    Junior Member
    Join Date
    Jun 2013
    Location
    Philippines
    Posts
    7
    My Mood
    Confused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Horse Racing game

    i thought spaces will do the thing. haha

  4. #4
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Horse Racing game

    That still does not explain how you plan to solve the given problem, or which part of the solution you are having trouble with.
    Will this be a graphical display? Textual display? Driver only?
    Going to need every detail you can come up with before anyone can offer any real useful advice.

  5. #5
    Junior Member
    Join Date
    Jun 2013
    Location
    Philippines
    Posts
    7
    My Mood
    Confused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Horse Racing game

    i still don't have the codes of how the horses will yun. Textual display would do.
    i am having trouble of coding the random

  6. #6
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Horse Racing game

    Well, what have you been doing for 5 days? We haven't been working on it.

Similar Threads

  1. car racing project
    By mike416 in forum AWT / Java Swing
    Replies: 3
    Last Post: August 16th, 2013, 10:29 PM
  2. Replies: 3
    Last Post: March 1st, 2013, 11:01 PM
  3. Help with Snake Game Java Code: It's Impossible to Lose the Game
    By haruspex_icis in forum What's Wrong With My Code?
    Replies: 20
    Last Post: December 17th, 2012, 12:21 PM
  4. Simple game that requires me to load game settings from a file
    By 14fenix in forum Java Theory & Questions
    Replies: 5
    Last Post: December 1st, 2011, 09:21 PM
  5. Car racing
    By DanielVkc in forum What's Wrong With My Code?
    Replies: 105
    Last Post: July 22nd, 2011, 02:44 PM