Hi! I'm looking for some help on how to create a game in C++ (so I'm not sure if I should post in this board or the Game Programming board) so that a user inputs a six digit number composed entirely of 1s and 0s and the computer attempts to guess the number through the genetic algorithm.
I have some thoughts on how I might go about this, but my mind is complete mush at the moment from thinking about it far too much today.
What I have:
* Instructions for what the user has to do.
* An initial population of five randomly selected numbers. (Which is really a combination of 6 1s or 0s stringed together to make it a 6 digit number.)
* A rudimentary crossover, but I'm not sure if this is the correct way to go about it.
Please see the attached CPP file. I use the Bloodshed DEV-C++ compiler.