Class Square

  • All Implemented Interfaces:
    java.io.Serializable

    public class Square
    extends java.lang.Object
    implements java.io.Serializable
    This class represents one square on the board and will help with serialization and constructing turns later on.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Square​(int row, int column)  
    • Constructor Detail

      • Square

        public Square​(int row,
                      int column)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getRow

        public int getRow()
      • getColumn

        public int getColumn()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object