I would like to make a simple cmd console memory game. I have the idea how to do the logical part behind the entire game, however, I'm kinda stuck at the beginning - at generating 3 pairs of the 3 letters I would like to use in my code (aka 1 pair of 'a', 1 pair of 'b' and 1 pair of 'c').
I have thought about using srand(time(NULL)) and rand()% and then compare if I had already generated any of the given letter, however I can't imagine how to describe that. Could you help me out, please?
Take a look at a concentration game I made awhile back for the console. It's probably a little more in depth than you're used to, but you should be able to see how I made up the pairs, etc. I guess a lot of programmers on this site don't know what the game of 'Concentration' is or how it's played. Anyway, if you have any questions, please ask.