Changeset 13bb59c in orbit


Ignore:
Timestamp:
12/27/13 06:53:14 (6 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo
Children:
076a101
Parents:
a9fa399
Message:
  • Anti-cheating check added to scoring system
File:
1 edited

Legend:

Unmodified
Added
Removed
  • android/src/info/puzzlebox/orbit/FragmentTabFlightThinkGear.java

    ra9fa399 r13bb59c  
    11061106                        textViewHighScore.setText(Integer.toString(scoreHigh)); 
    11071107                } 
     1108                 
     1109                 
     1110                // Catch anyone gaming the system with one slider  
     1111                // below the minimum threshold and the other over. 
     1112                // For example, setting Meditation to 1% will keep helicopter 
     1113                // activated even if Attention is below target 
     1114                if ((eegAttention < eegAttentionTarget) && (eegMeditation < minimumScoreTarget)) 
     1115                        resetCurrentScore(); 
     1116                if ((eegMeditation < eegMeditationTarget) && (eegAttention < minimumScoreTarget)) 
     1117                        resetCurrentScore(); 
     1118                 
    11081119 
    11091120        } // updateScore 
Note: See TracChangeset for help on using the changeset viewer.