The aim of this coursework is to develop solutions of a game using Al techniques. Description...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The aim of this coursework is to develop solutions of a game using Al techniques. Description A two-person game is played with a set of identical stones arranged into a number of heaps. There may be any number of stones and any number of heaps. A move in this game consists of either removing any number of stones from one heap or removing an equal number of stones from each of two heaps. The winner of this game is the player whose turn it is to play when there is no stone left to pick. For example, with three heaps, of sizes 3, 2, and 1, there are ten possible moves, leading to these states (where we use the representation of game states as a list of the sizes of the heaps): Taking from the first heap only: [2,2,1], [2,1,1],[2.1] Taking from the second heap only: [3,1,1],[3,1] Taking from the third heap only: [3,2] Taking from the first and second heaps: [2.1.1],[1,1] Taking from the first and third heaps: [2.2] Taking from the second and third heaps: [3,1] [3,1] occurs twice because there are two different ways of reaching it in one move. Also note that the states are sorted lists as the order of the heaps has no bearing on the game. For example with two heaps of size 2 represented by [2.2] taking one stone from either heaps should produce state [2.1]. The aim of this coursework is to develop solutions of a game using Al techniques. Description A two-person game is played with a set of identical stones arranged into a number of heaps. There may be any number of stones and any number of heaps. A move in this game consists of either removing any number of stones from one heap or removing an equal number of stones from each of two heaps. The winner of this game is the player whose turn it is to play when there is no stone left to pick. For example, with three heaps, of sizes 3, 2, and 1, there are ten possible moves, leading to these states (where we use the representation of game states as a list of the sizes of the heaps): Taking from the first heap only: [2,2,1], [2,1,1],[2.1] Taking from the second heap only: [3,1,1],[3,1] Taking from the third heap only: [3,2] Taking from the first and second heaps: [2.1.1],[1,1] Taking from the first and third heaps: [2.2] Taking from the second and third heaps: [3,1] [3,1] occurs twice because there are two different ways of reaching it in one move. Also note that the states are sorted lists as the order of the heaps has no bearing on the game. For example with two heaps of size 2 represented by [2.2] taking one stone from either heaps should produce state [2.1].
Expert Answer:
Answer rating: 100% (QA)
Certainly I can help you with this coursework The game you described is known as a Nim game Nim is a mathematical strategy game that involves removing ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
It is the post-apocalyptic era, and hardship and depression run rampant. You are currently at the bottom of a staircase in the basement of an abandoned building looking at what is pure...
-
Problem 8-46 (LO. 2, 4, 9) Dennis Harding is considering acquiring a new automobile that he will use 100% for business in the subsequent year. The purchase price of the automobile would be $54,500....
-
Loss Contingency Presented below is a note disclosure for Matsui Corporation. Litigation and Environmental: The Company has been notified, or is a named or a potentially responsible party in a number...
-
The Operating Activities section of Miller Corp.'s statement of cash flows reported an adjustment for depreciation expense of $25,000, as well as another for a loss on the sale of equipment of $5,000...
-
Given the information below for Mexicana Cement, Inc.: a. How much is the firms net working capital and what is the debt ratio? b. Complete a common-sized income statement, a commonsized balance...
-
Chester Inc. has identified activity centers to which overhead costs are assigned. The cost pool amounts for these centers and their selected activity drivers for 2013 follow. The companys products...
-
1. In the given reaction, XYZ3 2. 3. 4. 5. X+Y+3Z If one mole of each of X and Y with 0.05 mol of Z gives compound XYZ3. (Given: Atomic masses of X, Y and Z are 10, 20 and 30 amu, respectively.) The...
-
On April 18, 2011, Eli Lilly and Co. reported first- quarter profits for 2011 of $.95 per share. Analysts projected earnings to be $1.16 or $1.17 per share. However, Lilly reported non- GAAP earnings...
-
Ton Company was incorporated on January 1, 2018. The following information pertains to Ton's share capital transactions: Jan. 2 Number of shares authorized 80,000 Feb. 1 Number of shares issued...
-
Fred Miller, a teacher, had several additional sources of income during 2019. He received a $500 gift as a result of his helping a friend build a house, and he was assigned $300 of interest due his...
-
What is the total tax due for 2019, including self- employment tax, for Stuart, assuming that he earned $20,000 in wages, earned $24,000 in self-employment income from his first business, had a loss...
-
Helen Troy, a student seeking a Master's degree in accounting, was awarded a 50 percent scholarship to graduate school (valued at $3,000) and a $6,000 per year teaching assistantship (not required of...
-
Leah Sarah is employed at Cleveland Inc. at an annual salary of $45,000. Leah received $35,000 in salary in 2019 from Cleveland Inc., a prosperous company. They credited the unpaid salary to Leah...
-
Richard and Sally Murphy were divorced in 2017. By the terms of their decree Richard pays Sally $1,000 a month for alimony and child support. When Jane, their 14-year-old daughter, reaches age 18,...
-
B 0 Place the structures of the large intestine in the correct order of flow of waste product beginning nearest to the small intestine towards the rectum. Ascending Colon Cecum Descending Colon Left...
-
Portal Manufacturing has total fixed costs of $520,000. A unit of product sells for $15 and variable costs per unit are $11. a). Prepare a contribution margin income statement showing predicted net...
-
Mike sells his home to Jane on April 2, 2012. Jane pays the property taxes covering the full calendar year in October, which amount to $2,500. How much may Mike and Jane each deduct for property...
-
Lisa Sizemore, a taxpayer in the 10-15 percent tax bracket, purchased stock as an investment on July 11, 2011. She sold the stock on July 9, 2012, 2 days before qualifying for the long-term holding...
-
Your supervisor has asked you to research the following situation concerning Owen and Lisa Cordoncillo. Owen and Lisa are brother and sister. In May 2012, Owen and Lisa exchange business pickup...
-
The plaintiff [Christine Parent] leased an automobile from Amity Autoworld, Ltd. (hereafter Amity) [in Amityville, New York] in January 2002. Amity sold all its Toyota automobile franchise assets * *...
-
Iberia Surgical [LLC] was formed, in August 1998, by a group of physicians practicing in Iberia Parish [Louisiana] for the purpose of establishing an ambulatory, outpatient surgery center. * * * Dr....
-
The Communications Act of 1934 established a system of limited-term broadcast licenses subject to various conditions * * * . * * * [These conditions include] the indecency banthe statutory...
Study smarter with the SolutionInn App