top of page
"Bulls & Cows" is a word puzzle: guess the hidden word—an isogram, or a word with no repeating letters—according to the given word length. I made this game following Ben Tristem's Unreal Development Course with C++, mostly to familiarize myself with the syntax of C++ and file management.
​
The game works by storing the hidden word in an array, and it reads input words one letter at a time, matching it up first against a value that should equal a letter in the hidden isogram, then checking the rest of the word for repeated letters, then checking the order of the letters: therefore, "anoint" won't be accepted if the hidden word is "nation."
​
The assorted code (in three separate files) can be found here, on GitHub.
bottom of page