in my c++ class we have to make a game and i need some ideas on what to make.
the only thing i have learned is:
random numbers, ifs, switch case, while loop, for loop, some character string functions of cin.get and cin.ignore, also declaring a character string, data formatting functions such as tabbing and spacing.also learned do while loop and string length function.
please give me suggestions on what kind of games i can make with these things i have learned.

Dani AI

Generated

Good plain-C++ projects that stretch only the basics and can easily fill a week are ones you can build in small steps and then layer features on. already listed what you know, and replies from , , and point in useful directions—below are three concrete project outlines plus practical tips to make each become a week-long, "cool" assignment.

Hangman with levels and polish. Implement a basic guess loop and display the masked word. Add used-letter tracking, difficulty levels (longer words), an ASCII gallows display, and a scoring system. Stretch goals: timed rounds, hint tokens, and a persistent high-score file. Troubleshooting: prevent duplicate guesses by checking a "used letters" string, validate single-character input (use cin.get()/cin.ignore() correctly), and guard against off-by-one mistakes when revealing letters.

Word-scramble / tournament mode. Start with a small list of words, scramble them by swapping characters in the string, and ask the player to unscramble. Build rounds, streak bonuses, and a ladder mode where words increase in length. Make it last by adding multiple word packs, a simple menu with switch, and per-session stats. Tip: keep a minimal playable version first, then add scoring multipliers and replayability.

Virtual pet / decision simulator. Build a menu-driven loop where hunger, mood, and health change over time and after actions. Add random events, mini-actions (feed/play/train), and save/load as a stretch. Watch for infinite loops in the main game loop and always validate menu input to avoid crashes.

Suggested schedule: day 1 basic loop + I/O; days 2–4 features (scoring, levels, persistence); days 5–6 polish (ASCII UI, input robustness); day 7 testing and extras. If you follow into AI or follow to modify existing code, start small: simple heuristics beat overambitious search for a class project.

Recommended Answers

All 5 Replies

A random number guessing number could suffice to some extent...

i need something that would keep me busy for a while, that is too easy, i can finish that in a day, need something that would take at least a week and it should be something cool

Do you know cout or other out put? If so you could do a text based RPG or a quiz game.

Try going for Go, Tic-tac-toe, Bingo... all of them with AI.. quite interesting and would take quite a time.

Download minimine from sourceforge and modify.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.