heuristic + arena + alphabeta
This commit is contained in:
@@ -10,9 +10,6 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
/**
|
||||
* Bot non intelligent : joue un coup légal au hasard.
|
||||
*/
|
||||
public class RandomBot extends AbstractGamePlayer {
|
||||
|
||||
private final Random rng;
|
||||
@@ -28,7 +25,6 @@ public class RandomBot extends AbstractGamePlayer {
|
||||
|
||||
@Override
|
||||
public AbstractPly giveYourMove(IBoard board) {
|
||||
// On récupère tous les coups légaux via l'itérateur fourni par le plateau.
|
||||
List<AbstractPly> legal = new ArrayList<>();
|
||||
Iterator<AbstractPly> it = board.iterator();
|
||||
while (it.hasNext()) {
|
||||
|
||||
Reference in New Issue
Block a user