Skip to content

Joe-Whitehead/TheLongGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[C# Player's Guide] The Long Game

C# Player's Guide Book

My Solution for the C# Player's Guide Challenge for "The Long Game".

Objectives:

  • When the program starts, ask the user to enter their name.
  • By default, the player starts with a score of 0.
  • Add 1 point to their score for every keypress they make.
  • Display the player’s updated score after each keypress.
  • When the player presses the Enter key, end the game. Hint: the following code reads a keypress and checks whether it was the Enter key: Console.ReadKey().Key == ConsoleKey.Enter
  • When the player presses Enter, save their score in a file. Hint: Consider saving this to a file named [username].txt. For this challenge, you can assume the user doesn’t enter a name that would produce an illegal file name (such as *).
  • When a user enters a name at the start, if they already have a previously saved score, start with that score instead.

About

C# Player's Guide Challenge "The Long Game"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages