forked from github/server
skill_weeks, die letzte und endgültige fassung
This commit is contained in:
parent
4a9abea1d8
commit
02304df7b5
|
@ -315,8 +315,12 @@ int
|
||||||
skill_weeks(int level)
|
skill_weeks(int level)
|
||||||
/* how many weeks must i study to get from level to level+1 */
|
/* how many weeks must i study to get from level to level+1 */
|
||||||
{
|
{
|
||||||
/* derzeit gleichverteilt. MUSS geändert werden! */
|
int coins = 2*level;
|
||||||
return (1+rand()%(level*2+1));
|
int heads = 1;
|
||||||
|
while (coins--) {
|
||||||
|
heads += rand() % 2;
|
||||||
|
}
|
||||||
|
return heads;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue