Exemplo n.º 1
0
Arquivo: Main.cs Projeto: zimpzon/haps
    private bool CheckWin(out int winIdx)
    {
        winIdx = -1;
        var final9 = wheel_.GetFinal9();
        int id0    = WinLineCells[0];
        int id1    = WinLineCells[1];
        int id2    = WinLineCells[2];

        if ((final9[id0] == final9[id1]) && (final9[id1] == final9[id2]))
        {
            // All 3 are equal
            winIdx = final9[id0];
            AppLog.StaticLogInfo("Matched 3: {0}", winIdx);
            return(true);
        }

        return(false);
    }
Exemplo n.º 2
0
Arquivo: Main.cs Projeto: zimpzon/haps
 void SetGameState(SpinStateEnum newState)
 {
     AppLog.StaticLogInfo("Setting new game state: {0}", newState);
     SpinState = newState;
 }