Advertisement
szabozoltan69

Untitled

Nov 14th, 2011
140
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function match(){ //tricks for 4,7,9: ^v swaps. We turn them by a West-East axis.
  2.     global $b,$pos;
  3.     return //""; $a=
  4. ($b[0]['>']==$b[5]['>']? '+ ':'0>5 ').
  5. ($b[0]['^']==$b[5]['^']? '+ ':'0^5 ').
  6. ($b[0]['^']==$b[1]['^']? '+ ':'0^1 ').
  7. ($b[0]['v']==$b[6]['^']? '+ ':'0v6 ').
  8. ($b[0]['<']==$b[7]['>']? '+ ':'0<7 '). //       check for 7.   Not affected ^v
  9.  
  10. ($b[1]['^']==$b[5]['^']? '+ ':'1^5 ').
  11. ($b[1]['<']==$b[5]['<']? '+ ':'1<5 ').
  12. ($b[1]['<']==$b[2]['<']? '+ ':'1<2 ').
  13. ($b[1]['>']==$b[7]['<']? '+ ':'1>7 '). //       check for 7.   Not affected: ^v
  14. ($b[1]['v']==$b[8]['^']? '+ ':'1v8 ').
  15.  
  16. ($b[2]['<']==$b[5]['<']? '+ ':'2<5 ').
  17. ($b[2]['v']==$b[5]['v']? '+ ':'2v5 ').
  18. ($b[2]['v']==$b[3]['v']? '+ ':'2v3 ').
  19. ($b[2]['^']==$b[8]['v']? '+ ':'2^8 ').
  20. ($b[2]['>']==$b[9]['<']? '+ ':'2>9 '). //       check for 9.   Not affected: ^v
  21.  
  22. ($b[3]['v']==$b[5]['v']? '+ ':'3v5 ').
  23. ($b[3]['>']==$b[5]['>']? '+ ':'3>5 ').
  24. ($b[3]['>']==$b[0]['>']? '+ ':'3>0 ').
  25. ($b[3]['<']==$b[9]['>']? '+ ':'3<9 '). //       check for 9.   Not affected: ^v
  26. ($b[3]['^']==$b[6]['v']? '+ ':'3^6 ').
  27.  
  28. ($b[4]['>']==$b[6]['<']? '+ ':'4>6 '). //       check for 4.   Not affected: ^v
  29. ($b[4]['v']==$b[7]['^']? '+ ':'4_7 '). //tricky check for 4,7. Orig: ($b[4]['^']==$b[7]['v']? '+ ':'4^7 ')
  30. ($b[4]['<']==$b[8]['>']? '+ ':'4<8 '). //       check for 4.   Not affected: ^v
  31. ($b[4]['^']==$b[9]['v']? '+ ':'4˘9 '). //tricky check for 4,9. Orig: ($b[4]['v']==$b[9]['^']? '+ ':'4v9 ')
  32.  
  33. //tetrahdrns sidecolor?
  34. ($b[6]['>']==$b[3]['>']? '+ ':'6>3 ').
  35. ($b[6]['>']==$b[0]['>']? '+ ':'6>0 ').
  36. ($b[6]['>']==$b[5]['>']? '+ ':'6>5 ').
  37. ($b[7]['v']==$b[0]['^']? '+ ':'7_0 '). // tricky for 7. Orig: ($b[7]['^']==$b[0]['^']? '+ ':'7^0 ')
  38. ($b[7]['v']==$b[1]['^']? '+ ':'7_1 '). // tricky for 7. Orig: ($b[7]['^']==$b[1]['^']? '+ ':'7^1 ')
  39. ($b[7]['v']==$b[5]['^']? '+ ':'7_5 '). // tricky for 7. Orig: ($b[7]['^']==$b[5]['^']? '+ ':'7^5 ')
  40. ($b[8]['<']==$b[1]['<']? '+ ':'8<1 ').
  41. ($b[8]['<']==$b[2]['<']? '+ ':'8<2 ').
  42. ($b[8]['<']==$b[5]['<']? '+ ':'8<5 ').
  43. ($b[9]['^']==$b[2]['v']? '+ ':'9˘2 '). // tricky for 9. Orig: ($b[9]['v']==$b[2]['v']? '+ ':'9v2 ')
  44. ($b[9]['^']==$b[3]['v']? '+ ':'9˘3 '). // tricky for 9. Orig: ($b[9]['v']==$b[3]['v']? '+ ':'9v3 ')
  45. ($b[9]['^']==$b[5]['v']? '+ ':'9˘5 '). // tricky for 9. Orig: ($b[9]['v']==$b[5]['v']? '+ ':'9v5 ')
  46.  
  47. '';
  48. }
  49.  
  50.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement