[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Missing post? - see this post about spam for more information.
Pathfinding Robot  XML
Forum Index » Java Programming
Author Message
Accendo

Newbie

Joined: 01/18/2011 09:21:51
Messages: 2
Offline

Hey there hotJoe!

I have been given a piece of coursework and before I go wandering off on my own and messing things up I figured I should best start with a forum of experts.

  • The requirements for the program are to have a "Robot" that moves from one location to another read in from a file, on a 20x20 grid.

  • It can only move forward and turn to look in the directions of NORTH, EAST, SOUTH, WEST.

  • There are also landmarks stored in another file, record the ones I pass over

  • Then print out how far the robot moved.


  • Upgrades (Not necessary for a pass)
  • Graphics using swing.

  • Being able to rotate in any direction of 360 degrees.

  • Still print out how far the robot moved but now it's not as simple as I'd need to use trig. now.


  • I am a big newbie to programming as a whole, only the basic things I have done through uni I know and I would like any input you guys could give me on how best to start this bad boy of an assignment.

    Kind regards,
    Accendo
    stdunbar

    Newbie
    [Avatar]

    Joined: 06/22/2005 14:51:37
    Messages: 903
    Location: Superior, CO, USA
    Online

    I would generally start by writing out how you would accomplish this in sentences, not in code. Think about what you'd want to do and write it down. That will force you to collect your thoughts and get them organized.

    One of the things I would also mention is that you should think in terms of physical objects too. For example, you probably have a Robot and a Grid. A grid is made up of Cells and some of those cells are special (landmarks).

    It sounds like the Robot will drive itself, randomly picking where to move next.

    Let us know if you get stuck.

    Thanks for using the forums at hotjoe.com
    [WWW] [Yahoo!] [ICQ]
    Accendo

    Newbie

    Joined: 01/18/2011 09:21:51
    Messages: 2
    Offline

    Just seen this is a dead forum last post before mine was about 2 wk ago I think IIRC?

    Posted contents on devshed, TY.

    This message was edited 2 times. Last update was at 01/19/2011 16:48:09

     
    Forum Index » Java Programming
    Go to:   
    Powered by JForum 2.1.9 © JForum Team
    This site run by Scott Dunbar of Xigole Systems. © 2005-2012 - Scott Dunbar
    Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners
    hotjoe.com, xigole.com, and Scott Dunbar have no affiliation with Oracle