Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 6th, 2005, 10:14 PM   #1
Blackwolf189
Newbie
 
Join Date: May 2005
Posts: 10
Rep Power: 0 Blackwolf189 is on a distinguished road
Java MBS

For those of you who don't know, the Java MBS is the program used for several questions on the Java AP exam. In computer science class, we were told to write our own version of the Java MBS since the one we were provided with didn't work. I am using BlueJ. My darter fish does not move correctly. I have no clue why. Attached are each of my individual classes. They are pretty straight forward. Please examen the move method in DarterFish. The DarterFish can only move East and West. My problem arises when the fish hits the end of the grid it is contained in. It will change direction, but will no longer move forward. It will continue to change Direction until the program is stopped. My program doesn't have any graphics yet, so just draw a 4 x 4 grid on a piece of paper, number each side from 0 to 3, put a fish facing west in the bottom right corner and follow along with the text output.
Attached Files
File Type: zip JavaMBS.zip (6.3 KB, 38 views)
Blackwolf189 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:06 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC