Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Square{
- int hg;
- int vg;
- int state;
- Square ul;
- Square u;
- Square ur;
- ....
- public Square(...){
- //a constructor, as necessary
- }
- public Square(... ...){
- //another constructor, as necessary
- }
- public Square cons_down(Square initial){
- Square n = new Square(initial.hg, inital.vg+1, etc...);
- return n;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement