4s.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. #include "xs.h"
  10. int N = 4;
  11. Piece pieces[]={
  12. { 0, 0, 4,1, { 0,0, 1,0, 1,0, 1,0 }},
  13. { 1, 0, 1,4, { 0,0, 0,1, 0,1, 0,1 }},
  14. { 2, 0, 4,1, { 0,0, 1,0, 1,0, 1,0 }},
  15. { 3, 0, 1,4, { 0,0, 0,1, 0,1, 0,1 }},
  16. { 0, 1, 3,2, { 0,0, 1,0, 1,0, 0,1 }},
  17. { 1, 1, 2,3, { 1,0, 0,1, 0,1, -1,0 }},
  18. { 2, 1, 3,2, { 0,0, 0,1, 1,0, 1,0 }},
  19. { 3, 1, 2,3, { 0,0, 1,0, -1,1, 0,1 }},
  20. { 0, 2, 3,2, { 0,1, 1,0, 1,0, 0,-1}},
  21. { 1, 2, 2,3, { 0,0, 0,1, 0,1, 1,0 }},
  22. { 2, 2, 3,2, { 0,0, 1,0, 1,0, -2,1 }},
  23. { 3, 2, 2,3, { 0,0, 1,0, 0,1, 0,1 }},
  24. { 0, 3, 2,2, { 0,1, 1,0, 0,-1, -1,0}},
  25. { 1, 3, 2,2, { 0,1, 1,0, 0,-1, -1,0}},
  26. { 2, 3, 2,2, { 0,1, 1,0, 0,-1, -1,0}},
  27. { 3, 3, 2,2, { 0,1, 1,0, 0,-1, -1,0}},
  28. { 0, 4, 3,2, { 0,0, 1,0, 1,0, -1,1 }},
  29. { 1, 4, 2,3, { 1,0, -1,1, 1,0, 0,1 }},
  30. { 2, 4, 3,2, { 1,0, -1,1, 1,0, 1,0 }},
  31. { 3, 4, 2,3, { 0,0, 0,1, 0,1, 1,-1}},
  32. { 0, 5, 3,2, { 0,0, 1,0, 0,1, 1,0 }},
  33. { 1, 5, 2,3, { 1,0, 0,1, -1,0, 0,1 }},
  34. { 2, 5, 3,2, { 0,0, 1,0, 0,1, 1,0 }},
  35. { 3, 5, 2,3, { 1,0, 0,1, -1,0, 0,1 }},
  36. { 0, 6, 3,2, { 0,1, 1,0, 0,-1, 1,0 }},
  37. { 1, 6, 2,3, { 0,0, 0,1, 1,0, 0,1 }},
  38. { 2, 6, 3,2, { 0,1, 1,0, 0,-1, 1,0 }},
  39. { 3, 6, 2,3, { 0,0, 0,1, 1,0, 0,1 }},
  40. };
  41. int NP = nelem(pieces);