Build an intelligent game program that allow a user to play

Assignment Help Web Project
Reference no: EM13881024

Programming Assignment

Purpose: This assignment will give experience in the implementation of a tree data structure. It will also review recursion and introduce some simplistic AI concepts as they apply to two-player, zero-sum games.

Description: You will build an "intelligent" game program that will allow a user to play against the computer, insuring that the computer always makes a "good" move. You have a choice to either implement the game Othello or Critical Mass (to be described in class). The intelligence of your choices for the computer's moves will be implemented via a game tree, a generalized tree that represents options for some number of successive moves of the computer and the other player. The game tree is generated based upon the current state of the game board and then evaluated to determine which next move should be made. In the event that more than one move would have the same "value", a random choice of move should be made. Once the next move is determined, the move should be enacted according to the rules of the game and the play pass to the user.

This assignment will require a lot of planning because of its various aspects. There is the need to represent the game board in its current state to the user. There is the need to implement the mechanics of a move based upon the rules of the game. The game tree must be built, with each node in the game tree holding a different configuration of the game board based upon a specific choice that could be made. Finally, there must be a way to determine the "value" of a particular configuration so that a choice between board options can be made in an advantageous way.

There are several things you will want to understand prior to tackling your program:

• Of course, the rules of the game you choose to implement
• How to build a game tree
• Evaluation of a game tree using the minimax algorithm

The game trees for both Othello and Critical Mass in their entirety are huge - too huge to build and evaluate because of time constraints. Consequently, you should build a game tree of height no more than 4 (unless you want to do some additional research into optimizing evaluation approaches - but this would be very time consuming so I would discourage it).

Reference no: EM13881024

Questions Cloud

Estimate the weekly sales for the typical mcpablo''s outlet : Management of McPablo's Food Shops has completed a study of weekly demand for its "old-fashioned" tacos in 53 regional markets. The study revealed that Q = 400 - 1,200P + .8A + 55Pop + 800P° - Estimate the weekly sales for the typical McPablo's out..
How did essilor develop the global end-to-end supply chain? : How did Essilor develop the global end-to-end supply chain?
Why was rodney grant arrested : Under what two (2) circumstances does Gant limit Fourth Amendment search authority of the police? Why was Rodney Grant arrested? Where was Gant when police searched his vehicle and found cocaine? Under what constitutional amendment did Gant base his ..
Banks and other depository institutions make loans : Banks and other depository institutions make loans, invest in government securities, buy and sell federal funds, and accept deposits with a wide spectrum of maturities and with many payable on demand. Within this context, discuss the effect of differ..
Build an intelligent game program that allow a user to play : You will build an "intelligent" game program that will allow a user to play against the computer, insuring that the computer always makes a "good" move.
Downside of public announcement of such ratings : Would bank supervision be made easier if banks’ CAMELS ratings were made available publicly? What might be the downside of public announcement of such ratings?
What is meant by the equilibrium rate of interest : Using the graph below of the supply of loan able funds, SLF, and the demand for loan able funds, DLF, discuss the following:  What is meant by the equilibrium rate of interest? Illustrate and discuss how an autonomous increase in the expected rate of..
What sources can you use to give weight to your views : What evidence and arguments that he put forward to persuade you that he is right? Do you agree? Or disagree? What sources can you use to give weight to your views? Do other academic commentators agree or not
At which price is demand more price sensitive : A retail store faces a demand equation for Roller Blades given by: Q = 180 - 1.5P, where Q is the number of pairs sold per month and P is the price per pair in dollars - The store currently charges P = $80 per pair. At this price, determine the numbe..

Reviews

Write a Review

Web Project Questions & Answers

  Assignment on world-wide web application development

World-Wide Web Application Development, When the user clicks on add, you should make sure that a valid quantity has been entered, calculate the total price for that fish and display the fish, price, quantity as well as the line item price (price*q..

  Assignment of project report

Search any topic from internet to stimulate your idea and creativity. You might identify the main problems that the user faced in their daily life or analyze the weaknesses of existing THE college SIS and COLLEGE learning systems.

  What would be the result of adding an ip address

What would be the result of adding an IP address in front of the port number in the Listen directive and Navigate to the ServerRoot directive and record the path that is contained in quotes to the right of the directive.

  Description of the website''s perceived goal

Name of the website and URL where digital media project can be posted, Description of the website's perceived goal

  Embarking upon an enterprise-wide system integration project

Advantage and disadvantage for embarking upon an enterprise-wide system integration project

  Web based scams

Web phishing, pharming and vishing are popular web based scams. Talk about currently used tools and recommended measures to defeat this kind of attacks efficiently?

  An explanation of why you created the specific goal

An explanation of why you created the specific goal and An analysis of the impact that the information which is generated in the form of reports will have on the client

  How techniques assist in monitoring and controlling project

How do these techniques assist in monitoring and controlling the project activity?

  Create a new web site using either visual web developer

Create a new Web site using either Visual Web Developer or Visual Studio. Add pages for each of the main parts of the Web site (most of the pages only need basic content, such as a title and short descriptive paragraph of the function of the page)

  Project report

The Table of Contents is a key tool. Use it to format and organize your paper. You can use the headings below as the main sections of your paper. If you are unfamiliar with the Table of Contents utility in MS Word, check out the video in the Hub W..

  Comparing shelf software packages

Required assistance with comparing and contrasting two main off the shelf software packages that could be implemented in an organization.

  Describe development of a custom web-based application

Robin is available for 30 hours per week at $100 per hour. She was involved in the last two upgrades as a business analyst and has been trying to become involved in other systems and business areas. She was actively involved in the development of ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd