enum stone pickastone () { extern int rand(); int i = rand() % 7; return (i>2 ? CROSS : (enum stone) i); }