Motivation:
Final project in Computing Fundamentals: create a game using object-oriented programming
Approach:
Created a more complex version of tic-tac-toe with object oriented programming
Tic-tac-toe board with a smaller tic-tac-toe board in each square
To win a square, the board inside of it must be won
Players must make their move in the larger square that corresponds to the smaller square of their opponent's previous turn
If the square were full, then it becomes a free choice
Two game modes: bot that made strategic moves against the player and two-player mode
Program did not throw an error at an invalid input
Any input prompts did not move on until a valid input type was entered
Results:
Successful two-player game mode of ultimate tic-tac-toe
An easy to beat bot to play against
So many strategies that it was impossible to account for every scenario
Might be helpful to research machine learning for the bot
Motivation:
Embedded Design final project: create a program to display the x-axis value the DE1Soc FPGA on the seven segment displays
Approach:
Implimented object oriented programming in C++ to read the x value from the accelerometer
Values ranged from -1000 to 1000
Converted x values with Quartus to angles between 0 and 180 degrees
Results:
Displayed angles on the seven segment displays
Changed in increments of 9 degrees due to the equation used
Motivation:
Learn more about C++ and object-oriented programming by making a hangman game
Approach:
Two game modes: an auto-generated word or a player-made word
Could choose from easy, medium, or hard for the auto-generated word
Could input any string consisting of letters, dashes, spaces, or apostrophes for player-made
Auto-generated word was randomly chosen from an array using time-based seed
Vectors kept track of and display the characters in the mystery word
Player had the option to guess a letter or enter '1' to guess the whole word
Once word was guessed, player got the option to play again
Any prompt for an input would not move on until a valid input type was put in
Results:
Hangman!