File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GridWorld Help (Bug go in Z)

Jim Tseng
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need help with making a bug go in a "Z" shape and then stopping. The bug should stop completely if any obstacle is put in its way however. This is something for school and I really don't get it very well.

The person sitting by me in class said that I was making this really complicated and I was wondering if someone can help correct this.
We use JCreator 3.5 and the workspace is called GridWorld( I can email the files to you if necessary.

here's my lab
ZBug Lab Instruction

here's my current code

Thanks for the help!
[ November 15, 2007: Message edited by: Jim Tseng ]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic