Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. sub checksolved
  2. {
  3. my ($position) = @_;
  4. for ($i=0;$i<16;$i++)
  5. {
  6. if(@{$position}[$i]!=$solved1[$i]) {
  7. for ($i=0;$i<16;$i++)
  8. {
  9. if(@{$position}[$i]!=$solved2[$i]) {
  10. for ($i=0;$i<16;$i++)
  11. {
  12. if(@{$position}[$i]!=$solved3[$i]) {
  13. for ($i=0;$i<16;$i++)
  14. {
  15. if(@{$position}[$i]!=$solved4[$i]) {
  16. return "NOT SOLVED";
  17. }
  18. }
  19. }
  20. }
  21. }
  22. }
  23. }
  24. }
  25.  
  26. return "SOLVED";
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement