Coup.java 491 Bytes
Newer Older
Le noob du 53's avatar
Le noob du 53 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
package tictactoecodingame;


/**
 * @author Franck
 */
public abstract class Coup {

    private int note;

    public Coup() {
        note = Integer.MIN_VALUE;  // un coup est tres mauvais tant qu'il n'est pas analysé.
    }

    public void setNote(int _note) {
        note = _note;
    }

    public int getNote() {
        return note;
    }

    abstract public String toString();
    
    abstract public boolean equals(Object obj);
    
    abstract public int hashCode();
    
}