コード例 #1
0
ファイル: dices.c プロジェクト: andrewtroyan/troyandz
int playDices()
{
    int generalScore = 0, currentScore = 0;
    for(int i = 0; i < 2; ++i)
    {
        currentScore = dicesScore();
        dicesDraw(currentScore);
        generalScore += currentScore;
    }
    return generalScore;
}
コード例 #2
0
ファイル: Dices.c プロジェクト: itstepP1102014/MazurDZ
int dicesRoll()
{
    int scoreCurrent = 0, scoreTotal = 0;
    for(int i = 0, i < 2; ++i)
    {
        scoreCurrent = dicesScore();
        dicesThrow(scoreCurrent);
        scoreTotal += scoreCurrent;
    }

    return scoreTotal;
}