Skip to content

Commit

Permalink
Simon improved reporting (#13)
Browse files Browse the repository at this point in the history
* fixed bug in EOM process

* fixes bug in hint intensity calculations

* fixed hints and EOM value bug

* improved naming, logging times and reporting

* remove hint intensity from reporting if miss on present

* fixed starting level;
  • Loading branch information
JelmerT authored and trottier committed Sep 24, 2019
1 parent 0c1d274 commit 7d3ff17
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions games/017_Simon/src/simon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,13 +611,15 @@ bool playSimon(){
extra += "\",\"presentMisses\":\"";
extra += String(presentMisses);
extra += "\",\"responseMisses\":\"";
extra += String(responseMisses);
extra += "\",\"hintIntensity\":\"";
extra += String((int)(hintIntensityMultipl*100)); // is the same for whole seq in one level
extra += String(responseMisses);
if(presentMisses == 0){
extra += "\",\"hintIntensity\":\"";
extra += String((int)(hintIntensityMultipl*100)); // is the same for whole seq in one level
}
extra += "\",\"reinforceRatio\":\"";
extra += String(REINFORCE_RATIO);
extra += String::format("\",\"retryGame\":%c",retrySequence ? '1' : '0');

extra += "}";

// Log.info(extra);
Expand Down

0 comments on commit 7d3ff17

Please sign in to comment.