You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getActionsFromInfoSet should do the exact thing as it's called. From the infoSet it should get a set of possible actions at that moment so it can iterate over those in the beginning of the script. Depending on how infoSet is implemented this is possible OR NOT, I think currently there is a problem and can't be implented yet because of the implementation of an infoSet. But I honestly think that this part of the code isn't even necessary:
function MCCFR_P(minutes = 1) {
for (let p = 0; p < PLAYERS.length; p++) {
Object.keys(treeMap).map(key => {
const I = treeMap[key];
if (getCurrentPlayerFromInfoSet(I.infoSet) === p) {
const actions = getActionsFromInfoSet(I);
let regretSum = [];
let strategy = [];
for (let a = 0; a < actions.length; a++) {
regretSum[a] = 0;
if (isPreflop(I)) {
strategy[a] = 0; // 𝜙(Ii,a) = 0; not sure if this is correct
}
}
treeMap[I.infoSet] = { ...I, regretSum, strategy };
}
});
}
so that would make getActionsFromInfoSet uneccesary also
The text was updated successfully, but these errors were encountered:
Relevant bit from @EAT-CODE-KITE-REPEAT:
The text was updated successfully, but these errors were encountered: