Bull Cow game - points feature

I added collecting points feature. Player earn point when guess is correct. Points are decreasing when player losts his lives. The console looks clear and it is showing lives and points all the time.

if (Lives == 1) // player dont have lives
    {
        --Lives; // this is for showing player that its 0 lives

        if  (Points != 0) // decreasing points if out of lives
        {
            --Points;
        }
        
        ClearScreen();
        PrintLine(TEXT("Lives = %i. Points = %i"), Lives, Points); // show lives and points
        PrintLine(TEXT(""));
        PrintLine(TEXT(""));
        PrintLine(TEXT("Wrong answer. All lives lost!"));
        PrintLine(TEXT("The hidden word was: %s."), *HiddenWord);

        EndGame();
        return;
    }
1 Like

I love the idea of a point system!

Privacy & Terms