CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: luvstotalk

Search: Search took 0.02 seconds.

  1. Replies
    8
    Views
    3,921

    Re: AP comp sci help!

    thank you! i was able to figure it out... the errror was with the forward move blocked and a little with move and hall is clear. Anyways here is the code:


    public class Robot
    {
    private int[]...
  2. Replies
    8
    Views
    3,921

    Re: AP comp sci help!

    Here's to make the code a bit easier to read..... i'll take out the unnessessary stuff



    public class Robot
    {
    private int[] hall;
    private int pos; //current position (tile number) of Robot...
  3. Replies
    8
    Views
    3,921

    Re: AP comp sci help!

    also, we need to show how the toString works... so thats why there is so many robots. im just focusing on botOne
  4. Replies
    8
    Views
    3,921

    Re: AP comp sci help!

    hi! in the main method, im starting at index one of the array(i made a mistake in the botOne creation). because the robot goes toward the right, there is still one more toy that needs to be picked...
  5. Replies
    8
    Views
    3,921

    AP comp sci help!

    hi! how do you make an object go backwards through an array? my class is doing an ap question called robot clears the hall. everything is working except for the fact that the object doesn't turn...
Results 1 to 5 of 5





Click Here to Expand Forum to Full Width

Featured