Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub checksolved
- {
- my ($position) = @_;
- for ($i=0;$i<16;$i++)
- {
- if(@{$position}[$i]!=$solved1[$i]) {
- for ($i=0;$i<16;$i++)
- {
- if(@{$position}[$i]!=$solved2[$i]) {
- for ($i=0;$i<16;$i++)
- {
- if(@{$position}[$i]!=$solved3[$i]) {
- for ($i=0;$i<16;$i++)
- {
- if(@{$position}[$i]!=$solved4[$i]) {
- return "NOT SOLVED";
- }
- }
- }
- }
- }
- }
- }
- }
- return "SOLVED";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement