2048 / src / game2048 / InputSource.java
InputSource.java
Raw
package game2048;

/** Describes a source of input commands.
 *  @author P. N. Hilfinger
 */
interface InputSource {

    /** Returns one command string. */
    String getKey();

    /** Returns a candidate Tile whose row and column is in the range
     *  0 .. SIZE-1.  */
    Tile getNewTile(int size);

}