First, I want to say I'm far from an expert here. I know just enough to be dangerous
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 really depends on the type of game. You can produce computer/phone controlled players that mimic human behavior. In some instances, it is so exact that you have to add randomness to the routine to introduce error so the human player has a chance to win (i.e. pong and tic-tac-toe comes to mind here). Basically, think how you would perform the action(s) and then translate that into how the computer could attain the same/similar results.
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.).
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.).