package es.sandbox.spike.connectn;

import java.util.Objects;

/**
 * Created by jeslopalo on 24/2/16.
 */
class Chip {
    private final Color color;
    private final Position position;

    Chip(Color color, Position position) {
        this.color = color;
        this.position = position;
    }

    public Color color() {
        return this.color;
    }

    @Override
    public int hashCode() {
        return Objects.hash(position);
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        final Chip other = (Chip) obj;
        return Objects.equals(this.position, other.position);
    }

    @Override
    public String toString() {
        return "Chip{color=" + this.color + ", position=" + this.position + '}';
    }
}

@@ -347,32 +347,102 @@
 s.color;%0A    %7D%0A%0A
+    public Position position() %7B%0A        return this.position;%0A    %7D%0A%0A
     @Override%0A  

Add position() method