Merge branch 'master' of gitlab.isima.fr:audorival/gomoku
This commit is contained in:
@@ -17,7 +17,7 @@ public class GomokuAI extends Player{
|
||||
//------------------Methods--------------------------
|
||||
/**
|
||||
* Return the coordinate of the move played by the Gomoku AI.
|
||||
* @param Board The actual Gomoku board.
|
||||
* @param board The actual Gomoku board.
|
||||
* @return The Cell of the move played.
|
||||
*/
|
||||
public GomokuCell chooseMove(GomokuBoard board){
|
||||
@@ -44,7 +44,7 @@ public class GomokuAI extends Player{
|
||||
|
||||
/**
|
||||
* Return a Map of all Cell playable, and their point.
|
||||
* @param Board The actual Gomoku board.
|
||||
* @param board The actual Gomoku board.
|
||||
* @return the Map of all Cell playable, and their point.
|
||||
*/
|
||||
public Map<GomokuCell, Integer> GetCellPoint(GomokuBoard board){
|
||||
@@ -74,4 +74,4 @@ public class GomokuAI extends Player{
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ public class Human extends Player{
|
||||
//------------------Methods--------------------------
|
||||
/**
|
||||
* Return the coordinate of the move played by the player.
|
||||
* @param Board The actual Gomoku board.
|
||||
* @param board The actual Gomoku board.
|
||||
* @return The cell of the move played.
|
||||
*/
|
||||
public GomokuCell chooseMove(GomokuBoard board){
|
||||
@@ -62,4 +62,4 @@ public class Human extends Player{
|
||||
|
||||
return board.get(x,y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,8 +47,8 @@ abstract class Player{
|
||||
|
||||
/**
|
||||
* Return the coordinate of the move played by the player.
|
||||
* @param Board The actual Gomoku board.
|
||||
* @param board The actual Gomoku board.
|
||||
* @return The cell of the move played.
|
||||
*/
|
||||
public abstract GomokuCell chooseMove(GomokuBoard board);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user