Add Math Game project - #763
Conversation
🚀 Project Submitted!Thanks for submitting your project! I will review it soon. 📋 Please check the dashboard to make sure the project is marked as Pending. |
…switch statement and used modulo only for / operations
|
@Waaade105 Sorry about the delay. Project approved! 😄✅ The core requirements are met, input validation is handled better than in many first versions of this project, and the division logic avoids one of the most common bugs in this exercise. It's a shame you didn't complete all of the challenges this time, but nothing stops you from completing them later. 🥋You still need to submit your Freecodecamp certificate before you start earning belts 😊 👩🏫Feedback🔍️One small refinement would be to create Random once rather than every time PlayGame() runs. 🔍️You could also simplify this: into a switch expression: 🔍For better readability, make sure you clean the console after each operation, or at least add more spacing between your prints, otherwise it gets crowded quite quickly: 🧐Challenges Review✅ DRY / one method for different games This is one of the strongest parts of the submission. ❌ Difficulty levels: I don't see difficulty levels implemented. Every operation currently generates numbers in approximately the same 0–100 range. ❌ Timer: There is no timer tracking how long a game takes. Stopwatch would work nicely here. ❌ Random game The user currently chooses one operation and all five questions use that operation. A random-game mode could randomly select +, -, *, or / for each question. 🗺️ Suggested next stepI noticed that you haven't completed any of our courses yet. I suggest you try our Intro to Object Oriented Programming course next. This will close gaps in your knowledge and give you more confidence about OOP ☕If you like our roadmap, please consider buying us a coffee. We appreciate your help 🙂 Overall great work!✋🏻Looking forward to seeing your next projects! |

Math Game project submission for code review.