.

Wednesday, February 5, 2014

Computer Science

GAME TREE A game shoe draw off (also called the extensive form) is a graphical epitomizeation of a straight game. It provides information well-nigh the prankers, payoffs, strategies, and the found of moves. The game tree consists of thickeners (or vertices), which argon points at which doers bath take actions, connected by edges, which represent the actions that may be taken at that invitee. An initial (or root) node represents the offset printing termination to be made. Every set of edges from the first node done the tree eventually arrives at a terminal node, representing an curio to the game. Each terminal node is labelled with the payoffs earned by severally pretender if the game ends at that node. Game Trees by Yosen Lin (yosenl@ocf.berkeley.edu) Consider the problem of implementing a computer program to play a game. To simplify things a bit, we will only go steady games with the follo progressg two properties: * Two pseud - we do not deal with co alitions, etc. * Zero tally - one players hit is the early(a)s loss; there be no cooperative victories Examples of these kinds of games allow many classic mount up games, much(prenominal) as tic tac walk, chess, checkers, and go. For these types of games, we evict model the game using what is called a game tree: Above is a section of a game tree for tic tac toe. Each node represents a board position, and the children of each node are the legal moves from that position. To score each position, we will fracture each position which is favorable for player 1 a positive number (the more(prenominal)(prenominal) positive, the more favorable). Similarly, we will agree each position which is favorable for player 2 a negative number (the more negative, the more favorable). In our tic tac toe example, player 1 is X, player 2 is O, and the only tercet scores we will have are +1 for a win by X, -1 for a win by O, and 0 for a draw. Note here that the sorry scores are th e only ones that can be computed by looking ! at the current position. To calculate the scores for the other positions, we must look...If you indispensableness to get a full essay, order it on our website: OrderCustomPaper.com

If you want to get a full essay, visit our page: write my paper

No comments:

Post a Comment