Class Cracker

java.lang.Object
  |
  +--Cracker

public class Cracker
extends java.lang.Object

This class is used in conjunction with a lock class to see if it can open the lock without knowing the original combination.


Constructor Summary
Cracker()
           
 
Method Summary
 int pick(DigitalLock lock)
          Attempt to pick the given lock by guessing the combination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cracker

public Cracker()
Method Detail

pick

public int pick(DigitalLock lock)
Attempt to pick the given lock by guessing the combination.

Parameters:
lock - the lock to work on
Returns:
the combination that worked or -1 if failed.