Esempio n. 1
0
int playDices()
{
    int generalScore = 0, currentScore = 0;
    for(int i = 0; i < 2; ++i)
    {
        currentScore = dicesScore();
        dicesDraw(currentScore);
        generalScore += currentScore;
    }
    return generalScore;
}
Esempio n. 2
0
int dicesRoll()
{
    int scoreCurrent = 0, scoreTotal = 0;
    for(int i = 0, i < 2; ++i)
    {
        scoreCurrent = dicesScore();
        dicesThrow(scoreCurrent);
        scoreTotal += scoreCurrent;
    }

    return scoreTotal;
}