Anonymous avatar 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;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.