public void know(View v) { if (knoww.getAlpha() == 0) return; words[position].stat = Math.max(20, words[position].stat - 4); words[position].reg = Math.min(10, words[position].reg + 1); update(); nextWord(); }
public void dontknow(View v) { if (knoww.getAlpha() == 0) return; words[position].stat = Math.min(80, words[position].stat + 4); words[position].reg = Math.max(0, words[position].reg - 1); update(); nextWord(); }