Commits

Shlomi Fish committed 6b0f911

Extract a constant.

  • Participants
  • Parent commits 17278c3

Comments (0)

Files changed (2)

File abc-path/Games-ABC_Path-Solver/Changes

 Revision history for Games-ABC_Path-Solver
 
+        - Create lib/Games/ABC_Path/Solver/Constants.pm based on the one 
+        from Games::ABC_Path::Generator.
+
 0.1.0   Wed Jul 20 20:34:01 IDT 2011
         - Add the input_from_v1_string class method to input from a version
         1 string, so there will be a way to input from something besides

File abc-path/Games-ABC_Path-Solver/lib/Games/ABC_Path/Solver/Board.pm

         confess "Letter $letter out of range.";
     }
 
-    return $letter * ($LEN * $LEN) + $self->_xy_to_idx($x,$y);
+    return $letter * $BOARD_SIZE + $self->_xy_to_idx($x,$y);
 }
 
 sub _get_verdict