Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

attention and meditation can be set at the same time

  • Loading branch information...
commit 9552ebfe6144b54fb91a463789b22098d5215ba5 1 parent 551b6e4
Frederic Ye Aqua-Ye authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 src/mind.opa
6 src/mind.opa
@@ -3,9 +3,9 @@ import mindwave
3 3 get_nb_moves() =
4 4 att = MindWave.get_attention_level()
5 5 med = MindWave.get_meditation_level()
6   - if att < 20 && Random.int(101) < 20 then 0
7   - else if med > 80 && Random.int(101) < 20 then 2
8   - else 1
  6 + slow = if att < 20 && Random.int(101) < 20 then (-1) else 0
  7 + if med > 80 && Random.int(101) < 20 then slow+2
  8 + else slow+1
9 9
10 10 mindwave_flash =
11 11 <div id="flashContent">

0 comments on commit 9552ebf

Please sign in to comment.
Something went wrong with that request. Please try again.