Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2005
    Thanked 0 Times in 0 Posts

    Back Command in Java BlueJ

    I'm very new to Java programming. I can do some code reading and write some code but I still need a lot of help.

    I want to implement a "back" command in this game. The "back" command takes the player into the last room he/she has been in.

    How do I do this? I don't even know where to start. You can open up the file with BlueJ.

    I also want to refactor my project to introduce a separate "Player" class. A player object should store at least the current room of the player, but you may also like to store th eplayer's name or other information.

    Attached Files Attached Files

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    London, England
    Thanked 2,573 Times in 2,551 Posts
    You are in the wrong forum. Your question relates to Java, not Javascript, which is an entirely different langauge in spite of the confusingly similar names. Ask a mod to move you to the correct forum.

    I am afraid that people may be leery of downloading a file from a newcomer
    on security grounds. Too many loonies out there!


    Posting Permissions

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