Results 1 to 3 of 3
  1. #1
    In.Co is offline Member
    Join Date
    Sep 2012
    Posts
    1
    Rep Power
    0

    Default Applying correct turn method for bug moving on a 2-D grid.

    Didn't know cross posting was against the rules, so I removed the post.
    Attached Thumbnails Attached Thumbnails Applying correct turn method for bug moving on a 2-D grid.-vh5dzb.png  
    Last edited by In.Co; 09-10-2012 at 12:35 AM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,240
    Rep Power
    19

    Default Re: Applying correct turn method for bug moving on a 2-D grid.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

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

    Default Re: Applying correct turn method for bug moving on a 2-D grid.

    Is there a way to move the y position when it is turned and not x position?
    Use some logic like an if statement to control which variables are changed.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Creating a 'turn' method
    By StateofMind in forum New To Java
    Replies: 6
    Last Post: 11-27-2012, 10:36 AM
  2. why my car can not turn left and turn 5 round,Help!!THx
    By seongchog in forum Java Applets
    Replies: 7
    Last Post: 03-01-2012, 09:53 AM
  3. How to turn off auto correct function in eclipse
    By asadullah in forum Eclipse
    Replies: 3
    Last Post: 12-27-2011, 09:21 PM
  4. correct argument to put in synchronized method
    By markthien in forum Threads and Synchronization
    Replies: 3
    Last Post: 09-07-2011, 01:27 AM
  5. Help needed to turn a recursive method into iterative
    By mercyfulfate in forum New To Java
    Replies: 5
    Last Post: 07-16-2010, 06:13 PM

Posting Permissions

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