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

  Who is the intended audience

Visit a website readings that interests you. Review the home page or another pertinent page from the site. Write a summary that includes your reaction to the site. Address the following topics: What is the purpose of the site

  Create a topical website in dreamweaver

Create a topical website in Dreamweaver that contains the specified HTML page title

  Create a website that enables interactivity

Create a website from scratch that enables interactivity between a user and the organization. The website is meant for a museum.

  Create a web page that prompts the user for information

Prepare all questions from the array on the page as a trivia quiz and prepare the deleted question stored in the variable as the bonus question.

  Web to conduct research on recent computer-based attacks

Model an existing company or create one for this assignment. Thoroughly document a list of all information and/or documentation that you would need as the basis of a disaster recovery plan.

  How techniques assist in monitoring and controlling project

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

  Find recommendations for good design of web interfaces

Use a search engine to find recommendations for good design of Web interfaces. How are these recommendations similar to those discussed? How do they differ

  Build on web site with the cascading style sheet

Type your URL address to the drop box.5. Make sure you upload all images and other files that are necessary to make this page complete.

  Question about workplace bullying

Workplace bullying can be significant source of conflict, and stress, at work. Some of the generally suggested approaches to resolving conflicts of this nature typically entail mediation or other timely intervention through authoritative 3rd parties

  Human factors to consider when building a web site

What are some human factors to consider when building a Web site and what are some technical factors to consider when building a Web site?

  Can firm increase variability of its product line

Can a firm increase the variability and diversity of its product line while simultaneous realizing the higher possible level of efficiency? Provide one product example for illustration.

  Starting structure for development of all static web page

Create a static Web page that includes the basic structure of a valid HTML (not XHTML) document. Make sure to include the language attribute of the html element and the character set attribute of the metadata element.

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