001 package rules;
002
003 import java.util.*;
004
005 import core.*;
006
007 /**
008 * Empty piece.
009 *
010 */
011 public class Empty extends NoneSquare
012 {
013 /**
014 * @see Piece
015 */
016 public String getName()
017 {
018 return " ";
019 }
020
021 /**
022 * Constructs a new Empty instance
023 */
024 public Empty() { }
025
026 public String pieceString()
027 {
028 throw new RuntimeException("pieceString on empty square");
029 }
030
031 public int hashCode() {
032 return 12;
033 }
034 }