![]() ![]() OK, when I said, "knows nothing about the particular game," I was only partially right. So, again, it will consult an outside macro (GAME_BOARD_SIZE_X, GAME_BOARD_SIZE_Y) for this property. It does not need to know any strategies related to a particular game, only how to move, and what consitutes winning.Īs for the particular game states (ex: how does it know what the game board''s dimensions are?), it currently just uses a two dimensional array, with the size determined at compile time. This way, all the agent needs to know is what moves are valid, and if the game has been won or lost. Once the game is over, TheBrain traverses each move in the current game, and marks the state based on whether he won or lost. There are basically 2 functions the agent must interact with The Game Rules (where is a legal move?), and the game over (has someone won the game, or is it a draw?).īasically, TheBrain plays a game by consulting with it''s past game experiences, and if it has been in the same state as the current game state, it makes a decision based on what move he did next, and what it resulted in. Well, in a way, you could say the agent is seperated form the game, but, of course, it can''t be totally seperated. Would you mind elaborating just a little on the specific AI methodology you used? I would be very interested to hear about your agent if you have managed to dissociate the agent architecture from it''s environment. The specific response behaviour of the agent will be determined by the perceived benefit of it''s actions (which are interpreted by the interface), particularly if it is a learning agent (i.e., there must be a utility function somewhere in the model, whether stated explicity or implicitly hidden in the game model). While most people do not recognise this as a part of the agent, generally it is. There must be at least some level of interface between the game state and the agent. Without knowing anything of the methodology of your game agent or indeed the algorithm you implemented, it is hard to comment on it or to discuss it meaningfully! One thought though.īut, I wrote the AI engine (I call it TheBrain) such that it knows nothing about the particular''s of a certain game. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |