NIM game

I need a little help to create a NIM game program in C++. It has 2 functions, first, int playermove() that outputs number of matches, asks player to make move by selecting 1-3 matches and makes sure that player doesnt take too many matches. My second fucntion int computermove() prints how many matches were selected by computer. My main will loop until the last match is taken and obviously implement the functions with a couple other cins and couts. Can anyone help me on how I would create the 2 functions? Im a little lost with how to create those.Thank you very much.



wander
yes it is a project that has more to these functions. but ok. thank you
1
2
3
4
5
6
7
void someFunction() {
 cout << "Print Something" << endl;
}

int main() {
 someFunction();
}


Thats how to write, and call a function.
thanx Zaita.
Topic archived. No new replies allowed.