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 2 of 2

Thread: Help with pickup stones game

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with pickup stones game

    The game needs:
    4 Stones : #,@,%,$ at position 1,2,3,4
    Name of player and position.
    And Treasure

    When start, it needs an output like this:

    Jack(0) #(1) @(2) %(3) $(4) Treasure/6\(5)

    When we press l,r,p,d: player will move left or right, or (p) pick up stone or (d) put stone into chest.

    I have the problem is when press p, the player will pick up stone and the symbol will disappeare from its position and appeare next to the player name.

    Like this:
    Move: r

    >> Jack(1) #(1) @(2) %(3) $(4) Treasure/6\(5)

    Move: p

    >> Jack#(0) (1) @(2) %(3) $(4) Treasure/6\(5)

    Can someone help me how to do this, please ...


  2. #2

    Default Re: Help with pickup stones game

    You need to explain a lot more about what it is you are trying to do, how you are trying to do it, and what you have tried already. Posting your code where you think you have trouble is a good thing, too.
    Kenneth Walter
    Software Developer
    http://kennywalter.com

Similar Threads

  1. TIC-TAC-TOE GAME
    By umerahmad in forum What's Wrong With My Code?
    Replies: 2
    Last Post: August 29th, 2011, 12:15 PM
  2. Game
    By aneeeeen in forum Paid Java Projects
    Replies: 2
    Last Post: April 16th, 2011, 08:32 AM
  3. Help me with My Game.
    By jtvd78 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 13th, 2011, 04:14 PM
  4. Game 3x3
    By Koren3 in forum Algorithms & Recursion
    Replies: 1
    Last Post: December 20th, 2009, 08:43 PM
  5. Job offers to program Hobo Wars
    By MooncakeZ in forum Paid Java Projects
    Replies: 7
    Last Post: September 17th, 2009, 09:41 PM