Hey guys I'm new here i was wondering if you guys could help me out.
i need to make a game for school. its goes as.. 15 sticks arranged in 5 rows..
eg:
|
| |
| | |
| | | |
| | | | |
and the user can pick any number of sticks from a row. and followed by the computer last person who picks the stick is considered as the loser of the game. and i should make sure that the computer wins all the time. forcing the user to lose i have seen some example with 21 sticks but for this i cant figure out a logic. if you guys could help me out i would really appreciate it. plus I'm new to c programming.