Skip to content
Snippets Groups Projects
Commit 4c2a6ae1 authored by dragapsy's avatar dragapsy
Browse files

Tache 9 (Ajout de la classe ComputerPlayer + la methode Color play()):

parent 914a9774
Branches
No related tags found
No related merge requests found
package model;
import javafx.scene.paint.Color;
public class ComputerPlayer implements Player{
private String name;
private Cell StartCell;
private SquareCell cell;
public Color play(){
return cell.getColor();
}
@Override
public boolean isHuman() {
return false;
}
@Override
public void setName(String name) {
this.name=name;
}
@Override
public String getName() {
return this.name;
}
@Override
public Cell getStartCell() {
return this.StartCell;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment