Difference between revisions of "2022 - Implement a count of the cards remaining in the deck"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Created page with "=Issue= A player loses if they run out of cards in the deck without solving the locks. However the program doesn't give any indication of how many cards are left in the deck....")
(No difference)

Revision as of 16:42, 13 November 2021

Issue

A player loses if they run out of cards in the deck without solving the locks. However the program doesn't give any indication of how many cards are left in the deck.

Find the PlayGame method of the BreakThrough class, originally on line number 60 is this line:

Console.WriteLine("Current score: " + Score);

What you need to do

  • get the number of cards remaining in the deck
  • create a message to say how many cards remain in the deck