Projects

UFO: The Game

This is an interactive C++ project where you have to guess the codeword within 7 guesses otherwise you will be abducted by aliens. This project is a spin off from the classic game of hangman, if you are unsure how to play hangman please watch the video in the header. As I am still in the beginning of my journey I have not yet worked out how to get my webpage to run my C++ code. So even though I initially created this code on C++, I have rewritten (with the help of AI) the code to run using JavaScript so it can be completed here.

The main purpose of this projetc is to get used to using different files to declare functions and then define then on another before calling them on the main file. The reason why this would be beneficial is as projects get larger it is easier to manage when they are on different files. If you want to see the complete C++ code then click the following: main cpp, declaring functions hpp and defining functions cpp.

Result

Method