AI and player play correctly
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
import java.io.Console;
|
||||
import javax.swing.plaf.basic.BasicBorders;
|
||||
|
||||
public class Human extends Player{
|
||||
|
||||
@@ -13,7 +14,7 @@ public class Human extends Player{
|
||||
* @param Board The actual Gomoku board.
|
||||
* @return The coordinate of the move played.
|
||||
*/
|
||||
public Coordinate chooseMove(GomokuBoard board){
|
||||
public GomokuCell chooseMove(GomokuBoard board){
|
||||
|
||||
Console cons = System.console();
|
||||
|
||||
@@ -60,6 +61,6 @@ public class Human extends Player{
|
||||
System.out.println("Vous avez saisi : "+ x+", "+ y);
|
||||
|
||||
|
||||
return new Coordinate(x,y);
|
||||
return board.get(x,y);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user