Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 810 Bytes

File metadata and controls

14 lines (10 loc) · 810 Bytes

cpp-practice

Some practice C++ exercises.

1. Tell the time

A simple program to practice defining classes and methods that takes in the hour, minute and second in 24-hour time, and calls on a method to display the output in 12-hour and 24-hour time.

2. Punchout

A simple game to practice defining classes, constructors and simple control flow statements that generates boxers with a random skill level for the user to fight and calculates a score for how many have been defeated.

3. Poker 5-card draw

A more complex game to practice defining multiple classes, methods, constructors and managing a gamestate. Based on standard 5-card draw Poker rules.

4. Cypher

A program to practice string manipulation and working with key-value pairs by implementing a simple half-reversed alphabet cypher.