2022 - Implement a count of the cards remaining in the deck

From TRCCompSci - AQA Computer Science
Revision as of 16:42, 13 November 2021 by Admin (talk | contribs) (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....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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