constructeur dans les humain et ai
This commit is contained in:
@@ -5,6 +5,18 @@ import java.util.Random;
|
||||
|
||||
public class GomokuAI extends Player{
|
||||
|
||||
|
||||
//------------------Constructors--------------------------
|
||||
|
||||
/**
|
||||
* The constructor of the Human.
|
||||
* @param name The name of the player.
|
||||
* @param color The color of the player.
|
||||
*/
|
||||
public GomokuAI(String name,Color color){
|
||||
super(name,color);
|
||||
}
|
||||
|
||||
/**
|
||||
* This class is an extends of the class Player, this allows the GomokuAI to choose his move.
|
||||
*/
|
||||
|
||||
@@ -3,6 +3,19 @@ import java.io.Console;
|
||||
|
||||
public class Human extends Player{
|
||||
|
||||
|
||||
|
||||
//------------------Constructors--------------------------
|
||||
|
||||
/**
|
||||
* The constructor of the Human.
|
||||
* @param name The name of the player.
|
||||
* @param color The color of the player.
|
||||
*/
|
||||
public Human(String name,Color color){
|
||||
super(name,color);
|
||||
}
|
||||
|
||||
/**
|
||||
* This class is an extends of the class Player, this allows the player to choose his move.
|
||||
*/
|
||||
|
||||
@@ -21,7 +21,7 @@ abstract class Player{
|
||||
* @param name The name of the player.
|
||||
* @param color The color of the player.
|
||||
*/
|
||||
public void Player(String name,Color color){
|
||||
public Player(String name,Color color){
|
||||
this.name = name;
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user