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

  Evaluating an ecommerce website

Create a check list that contains key point for evaluating an ecommerce website - Write a short, reflective report about website

  Gpc and runtime magic quotes

Create a script that lets you know whether Zeus or Helios has the GPC and Runtime Magic Quotes turned on or off. The output should have appropriate labels that define what output signified and should display 'ON' or 'OFF' depending on the setting.

  Creating functions through conditional operator

Use the conditional operator and the cal_days_in_month function, determine the number of days in the current month and output to browser whether it is normal month or a leap month.

  Web development projects with database

Since the vast majority of web-development projects involve a database, do you think that computational activities should be performed there, or do you think they belong in the XML page or stylesheet?

  Comparing shelf software packages

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

  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?

  Explanation of contextual links

The most powerful hypertext capabilities is the the contextual link. Wikipedia . com is a great example of a site that utilizes contextual links.

  How architectural and protocol changes occur

Discuss how architectural and protocol changes happen, the administrative organization that oversees the technical development of the Internet,

  Traditional approaches for training professionals

Webinars and other web conferencing techniques have proved most beneficial for the provision of affordable quality corporate training.

  Internet for business

Discuss how can a business use the Internet and give at least three examples with web links demonstrating your answer.

  It influences the behavior of organizations

Information technology influences the behavior of organizations. Name one effect of Information technology implementation and long-term usage you suppose having a positive contribution and one having a negative consequence.

  Importance of a guided navigation system

Explain the use and importance of a guided navigation system and shopping cart for a website designed for e-commerce and business purpose.

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