+ def missCount(self) :
+ "Nombre d'erreurs"
+ eIter = self.getEventsIterator()
+ miss = 0
+ if self.mode in ('EASY', 'NORMAL') :
+ catchColUp = False
+ for ticks, eventName, message in eIter :
+ if eventName == 'COLDOWN' :
+ colState = message.split(None, 2)[1]
+ colState = colState == 'True'
+ if colState :
+ catchColUp = False
+ continue
+ else :
+ catchColUp = True
+ elif eventName == 'NOTEON' :
+ catchColUp = False
+ elif eventName == 'COLUP' and catchColUp :
+ miss = miss + 1
+ else :
+ for ticks, eventName, message in eIter :
+ if eventName == 'COLDOWN' :
+ colState = message.split(None, 2)[1]
+ colState = colState == 'True'
+ if not colState :
+ miss = miss + 1
+
+ return miss
+