Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sas12028 committed Apr 27, 2017
2 parents 4034ce6 + c8406e1 commit bb55e92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Learn.java
Expand Up @@ -19,8 +19,8 @@ public class Learn{
// for learning rate, first 30 with .1, next 30 with .05, then final 30 with .01 and see what happens

public static void learn(CheckersAI alpha, CheckersAI beta, LearningEvaluator le, BaseEvaluator be){
final int num_games = 10;
final int iterations = 10;
final int num_games = 5;
final int iterations = 20;

Random rand = new Random();
for(int j = 0; j < iterations; j++){
Expand Down Expand Up @@ -73,7 +73,7 @@ public class Learn{
int same_moves = 0;
Move lastmove = null;
Move secondlast = null;
while(!current.isTerminal() && same_moves <= 3 && moves <= 100){
while(!current.isTerminal() && same_moves <= 3 && moves <= 200){
Move next = alpha.minimax(current, 7); // get alpha's move
moves++;
if(secondlast != null && next.toString().equals(secondlast.toString())){
Expand Down

0 comments on commit bb55e92

Please sign in to comment.