C++ is the language I am currently learning through my matriculation at Morehouse College. C++ is a high-level programming language that is widely used for developing system software, device drivers, video games, embedded systems, and other performance-critical applications. It was first introduced in 1983 and is an extension of the C programming language, with added support for object-oriented programming and other features. C++ is known for its efficiency and ability to directly manipulate computer hardware, making it popular for developing performance-intensive software. It has a wide range of uses in industries such as finance, healthcare, and transportation, and is also commonly used in education and research. C++ has a large community of developers and a robust set of libraries and tools, making it a powerful language for building complex software systems.
For this project, I was assigned during my Programming 1 course to create the beloved Wordle Game by manipulating the console. The same rules apply as the normal Wordle: The player enters a word guess and the game provides feedback by highlighting letters that are correct and in the right position with a green square and letters that are correct but in the wrong position with a yellow circle. If the player guesses the word correctly within six attempts, they win the game. The game is designed to be challenging, as the player must use deduction and trial-and-error to figure out the correct word. Wordle is a simple yet addictive game that can be played in a short amount of time, making it popular among players of all ages. For a stretch opportunity, I made it so that every time the user hit the run button it would generate a random new answer word.
This is a game our professor, Ashwin, came up with. The rules are as follows:
Strategic Sevens is a two player game. The goal is to be the first player to reach at least 200 points.
During each turn, a player rolls two dice:
If the sum of the dice is 7, they lose ALL the points gained that turn and the turn is over
Otherwise, the sum of the dice is added to their turn score
The player can roll both dice as many times as they want in a turn. Once they choose to stop rolling and end their turn, the turn score will be added to their overall score (and can no longer be lost to a 7).
Once the turn ends, the next player starts their turn
Special Powers
Once per game, the player may erase the last roll and roll again
Once per game, the player may double the points earned in a turn
Our goal was to create a strategy that would beat three bots of three different difficulties: Easy, Medium, and hard. I came up with three different strategies.