Commits

Anonymous committed 8f0e820

Removed "return 0" check_if_unsolvable methods because they are
already implemented in the base class.

Comments (0)

Files changed (4)

lib/Games/LMSolve/Numbers.pm

     return sprintf("X = %i ; Y = %i", $x+1, $y+1);
 }
 
-# This function checks if a state it receives as an argument is a
-# dead-end one.
-sub check_if_unsolvable
-{
-    # One can always proceed from here.
-    return 0;
-}
-
 sub check_if_final_state
 {
     my $self = shift;

lib/Games/LMSolve/Plank/Base.pm

     return join(" ; ", @strings);
 }
 
-sub check_if_unsolvable
-{
-    return 0;
-}
-
 sub check_if_final_state
 {
     my $self = shift;

lib/Games/LMSolve/Tilt/Multi.pm

     return "($x,$y) Goals Collected=[" . join(",", (grep { $reached_goals &= (1 << $_) } (1 .. ($self->{'num_goals'})))) . "]";
 }
 
-sub check_if_unsolvable
-{
-    my $self = shift;
-    my $coords = shift;
-
-    return 0;
-}
-
 sub check_if_final_state
 {
     my $self = shift;

lib/Games/LMSolve/Tilt/Single.pm

     return sprintf("($x,$y)");
 }
 
-sub check_if_unsolvable
-{
-    my $self = shift;
-    my $coords = shift;
-
-    return 0;
-}
-
 sub check_if_final_state
 {
     my $self = shift;