I am trying to write a 4x4 grid using vertical bars and underscores. I have a class for the puzzle, but I want to know which fields and methods I can use to represent the configuration for the puzzle.
Reference:
I agree, you can provide more information. However, consider an approach like this:
In your puzzle class, you can assume value [] [] member to store the values you can do something like this
get public value (int x, int y) {return value [x] [y]; } Public Zero Set (int x, int y, value v) {values [x] [y] = v; }
Comments
Post a Comment