A study of Bulls and Cows in C++
This repository contains my attempt of doing Bulls and Cows game with C++. It is a study so everything here is done while I am trying to learn coding with C++. Here is how it looks like in normal mode: And here is how it looks like in verbose mode: Here is the source code: https://github.com/ibetovski/bulls-and-cows-study/blob/master/main.cpp There is a binary compiled on Linux here: https://github.com/ibetovski/bulls-and-cows-study/raw/master/bin/Debug/learncpp What is done: - The computer generates a 4 digit number - The generated number doesn't start with 0 - The generated number consists of unique digits. - The computer calculates the number of bulls and cows. - The player can guess computer's number To do: - Reading about Bulls and Cows algorithm - Implementing computer guessing the player's number. - Probably adding class to manage the logic. - Too optimistic: UI using Qt. Should read about Qt. Challenges I faced so far. - I am not sure if kee...