Skip to content

Commit

Permalink
Fix best response function
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus-J authored Mar 31, 2023
1 parent 6362e41 commit f38eecd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cfr.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ void best_response(double player[NUM_INFO][NUM_ACTIONS]){
uint32_t ind = 0;
double temp = 0;
for (uint32_t i=0; i<NUM_INFO; i++){
temp = -100000;
for (uint32_t j=0; j<NUM_ACTIONS; j++){
if (temp < brStrategy[i][j]){
temp = brStrategy[i][j];
Expand Down Expand Up @@ -517,4 +518,4 @@ int main() {
srand(time(NULL));
cfr(1000000); //iterations
return 0;
}
}

0 comments on commit f38eecd

Please sign in to comment.