Just wondering
Billyd1
Member Posts: 133
If you had a game that was 1 & 2 players how would you make the computer play as the other team? So you can play against the computer.
Thanks
Thanks
Comments
I'm not sure if you can create a computer player, unless it was an action with no variables / decisions to be made. Like if you're playing a game like shoots and ladders and the only thing you did was roll dice (or spin or whatever you do in that game) and the player acted on the result. If it were a board game like Monopoly or even tic-tac-toe where decisions have to be made I don't think GS can support game logic like that.
It can be done but it is not necessarily easily explained. I would search via google for any combination of these keywords: game logic theory AI "computer player" tracking etc.
Then be aware that GS does lack some of the common programming constructs that could make implementing game AI easier (i.e. like case/switch statements, looping, array use, etc.).