Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. class Square{
  2. int hg;
  3. int vg;
  4. int state;
  5. Square ul;
  6. Square u;
  7. Square ur;
  8. ....
  9.  
  10.  
  11. public Square(...){
  12. //a constructor, as necessary
  13. }
  14.  
  15. public Square(... ...){
  16. //another constructor, as necessary
  17. }
  18.  
  19. public Square cons_down(Square initial){
  20. Square n = new Square(initial.hg, inital.vg+1, etc...);
  21. return n;
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement