x and o symbol generation

Mar 5, 2013 at 10:51pm
I have program. I need programing one game.

char girl;
char computer;
cout << "Girl choose one of symbol x or o";
so girl choose x.

problem : i need random symbol genetation. so if random symbol are x, than girl start play. if random symbol ar o, than computer start game. who to do this?
Mar 5, 2013 at 11:43pm
Why do you need a random symbol for that?

Why can't you just use random numbers? Generate a random number of either 0 or 1. If 0, girl starts game, if 1, computer starts game.
Topic archived. No new replies allowed.