NIM game source code

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 fucntions 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
First of all, only post to one forum, see the link Zaita posted against your other copy of this question http://www.cplusplus.com/forum/beginner/2118/. Secondly, read this for more info on functions
http://www.cplusplus.com/doc/tutorial/functions.html and have a go. We will help, we won't do it for you.
yes it is a project that has more to these functions. but ok. thank you
Topic archived. No new replies allowed.