Skip to content

BrozDa/CodeReviews.Console.MathGame

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MathGame Project by C# Academy

Project Link: https://www.thecsharpacademy.com/project/53/math-game

Project Requirements:

  • You need to create a Math game containing the 4 basic operations
  • The divisions should result on INTEGERS ONLY and dividends should go from 0 to 100. Example: Your app shouldn't present the division 7/2 to the user, since it doesn't result in an integer.
  • Users should be presented with a menu to choose an operation
  • You should record previous games in a List and there should be an option in the menu for the user to visualize a history of previous games.
  • You don't need to record results on a database. Once the program is closed the results will be deleted.

Additional Challenges

  • Try to implement levels of difficulty.
  • Add a timer to track how long the user takes to finish the game.
  • Create a 'Random Game' option where the players will be presented with questions from random operations
  • To follow the DRY Principle, try using just one method for all games. Additionally, double check your project and try to find opportunities to achieve the same functionality with less code, avoiding repetition when possible.

Challenges Faced

  • Biggest challenge of this project was in timer implementation - Timers often went out of sync or continued between games.

Areas for Improvement: Math game class contains 400+ lines of code - there is potentionaly space for another class or refactor

About

MathGame project from CodeAcademy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%