Search:

Type: Posts; User: Norm

Search: Search took 0.21 seconds.

  1. Replies
    15
    Views
    894

    Re: Gridworld Chess Pawn not working

    When a piece is moved, set its new location.
  2. Replies
    15
    Views
    894

    Re: Gridworld Chess Pawn not working

    The debug print out does not show that the pawn is at 4,4. All the print outs show the pawn is at 6,4
    I assume that locX and locY are the pawn's location.
  3. Replies
    15
    Views
    894

    Re: Gridworld Chess Pawn not working

    What is the valid move that should be returned?

    What is the orientation and range of values for the rows and columns?
  4. Replies
    15
    Views
    894

    Re: Gridworld Chess Pawn not working

    There are 4 sets of the same values. Why is that?

    What was returned by the methods: getGrid().get() and getGrid().isValid()
    What was in the ArrayList: moves?

    --- Update ---

    What is the...
  5. Replies
    15
    Views
    894

    Re: Gridworld Chess Pawn not working

    Can you post the print out of the values of the variables that are used in the method? That will show what the code is doing.
    For example: l1 and l1 and the value returned by getGrid().get()
    and...
  6. Replies
    15
    Views
    894

    Re: Gridworld Chess Pawn not working

    l1 and 11 are hard to distinguish between in the code font.

    Copy the print out that shows what is happening and paste it here.
  7. Replies
    15
    Views
    894

    Re: Gridworld Chess Pawn not working

    Have you tried debugging the code to see what it is doing? I use println() statements that print out the values of variables as they are changed and used. The print out will show you what the code...
Results 1 to 7 of 7