10/14/2019 Genesereth, M. R. 2.
Contents.Purpose of GDL Quoted in an article in, Genesereth pointed out that although is able to play chess at a level, it is incapable of playing at all because it is a specialized game player. Both chess and checkers can be described in GDL. This enables general game players to be built that can play both of these games and any other game that can be described using GDL.Specification Syntax GDL is a variant of, and the is largely the same. It is usually given in. Variables begin with '?'
Keywords The following is the list of keywords in GDL, along with brief descriptions of their functions:distinct This predicate is used to require that two terms be syntactically different. Does The predicate does(?r,?m) means that player (or role)?r makes move?m in the current game state. Goal The predicate goal(?r,?n) is used to define goal value?n (usually a natural number between 0 and 100) for role?r in the current state. Init This predicate refers to a true fact about the initial game state. Legal The predicate legal(?r,?m) means that?m is a legal move for role?r in the current state.
![]()
Next This predicate refers to a true fact about the next game state. Role This predicate is used to add the name of a player. Terminal This predicate means that the current state is terminal.
True This predicate refers to a true fact about the current game state. Rules A game description in GDL provides complete rules for each of the following elements of a game.Players Facts that define the roles in a game.
The following example is from a GDL description of the two-player game:(role xplayer)(role oplayer)Initial state Rules that entail all facts about the initial game state. An example is:(init (cell 1 1 blank)).(init (cell 3 3 blank))(init (control xplayer))Legal moves Rules that describe each move by the conditions on the current position under which it can be taken by a player. An example is.
Genesereth In a broad sense, much of computer programming is simulation. On encodes facts about some aspect of the world and writes programs to answer questions using those facts.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |