Hey!
I am new in C programming and I just made a game in C (on cmd printed screen) which consists on a board where a number of "stones" are placed. At the beginning, you select how many rows and how many stones will the board have. It needs 2 players.
In shifts, players have to remove stones from a selected row (being possible to delete the amount of stones of that row that the player wants, but removing 1 minimum!!) and the one who removes the last stone of all rows, loses.
Example:
1 O O O
2 O O O O O
3 O O O O
If third row is selected, you can remove from 1 stone to 4.
My question is: Is it possible to make IA for this game in C programing? I tried with some 'if' but it's hard to guess every single possibility when the board size is eligible. (I don't want someone to make this for me, but to tell me if it's possible to do and give me some examples).
By the way, in my country this game is known as "Shepherd's game"
Thanks and sorry for my English