Design a prolog script that plays the role of an answerer

Assignment Help Other Subject
Reference no: EM132703056

Assignment: In the two-people game of ten questions, one person is answerer and the other person is questioner. They decide one topic to confine the scope, say Olympics games. The answerer decides an Olympic game in his/her mind and does not reveal the game to the questioner. Questioner is supposed to ask a maximum of ten questions to guess the answer.

Design a Prolog script that plays the role of an answerer. For example, queries can be related to:

• Team size (2 for badminton doubles, 1 for swimming)

• Number of teams in a game (2 for badminton doubles, many for swimming)

• Arena type (court for badminton doubles, pool for swimming)

• Play device (shuttle cock or racket for badminton doubles, water for swimming, ball or

racket for tennis, javelin for javelin throw, etc.)

• Game mode (knock out, timed)

• Performance type (score, win)

There should be only one form of query, for example: has(ball), has(pool), has(team), has(teamsize,2), has (teams_per_game, 2), etc. And one form of decision: is(badminton).

Prolog script should be able to play the game 5 times, choosing a different game each time.

Reference no: EM132703056

Questions Cloud

Team characteristics and diversity : What label would best describe the type of team that Whole Foods uses in its stores? Explain.
How many allowances should Abbe claim on her Form W-4 : If she expects to earn wages of $50,000, file jointly, and take the standard deduction, how many allowances should Abbe claim on her Form W-4
Which business-level strategy does mcdonald employ : How is McDonald's positioned vis-a-vis its major competitors? Which business-level strategy does McDonald's employ?
How much will Carol have to contribute to the Red Fund : Assuming the funds were distributed from a qualified retirement plan, not from an IRA, how much will Carol have to contribute to the Red Fund
Design a prolog script that plays the role of an answerer : In the two-people game of ten questions, one person is answerer and the other person is questioner. They decide one topic to confine the scope, say Olympics.
Critical thinking and business ethics : Considering the above situation build value or a compliance approach that best suits the manufacturing company.
Calculate John withholding using the percentage method : For 2018, John earns $3,000 per month and has three dependent children. Calculate John withholding using the percentage method
Biological or psycho-social stress hazard : Describe one physical, chemical, biological or psycho-social stress hazard that workers can be exposed to on the job and an associated adverse health effect
What leadership issues are raised by incident : Effie Pardini supervised 11 accounting clerks in the budget and planning department of a large computer manufacturer. None of the clerks had accounting degrees

Reviews

Write a Review

Other Subject Questions & Answers

  Discuss what are the miranda warnings

Offer a detailed account of what are the Miranda warnings supposed to do. When this warning is required and then distinguish between custody

  Discuss the case study of the petrakis family

Discuss the Case study of the Petrakis family.Describe the activities that would take place in the support group sessions that would address needs

  Create a presentation to educate group of adults about tenet

Create a 12-15 slide PowerPoint presentation to educate a group of students or adults about the core tenets listed above for an upcoming Constitution Day celebration in a school setting.

  Intellectual humility-intellectual autonomy

Intellectual Humility, Intellectual Autonomy, Intellectual Integrity, and Fair-mindedness. Obviously these are all inter-related. Which of these four, in your opinion, is the most important?

  Explain a strategy to mitigate each of these threats

Explain a strategy to mitigate each of these threats. Then, identify a potential ethical issue in quantitative research and explain how it might influence design decisions. Finally, explain what it means for a research topic to be amenable to scie..

  Discuss about the reflection of gender and sexuality

Write 1.5 page reflection of gender and sexuality. It is about anthropology. The reflection should include the definitions and personal experience or traveling.

  Topic- Effect of Social Media Advertising on Buyer Behaviour

HI6008 Business Research Project Assignment, Research Topic – Effect of Social Media Advertising on Buyer Behaviour

  Contemporary issues in aging

Identify a method of research you would like to focus on and select at least three articles focused on geriatric research, which use your selected method of research.

  Explain what threat do cyber-attacks pose to united states

Explain What threat do cyber-attacks pose to the United States? What if there was a successful terrorist group cyber-attack on the Pentagon.

  The area of data management

List at least three activities in which you might engage in your current practice setting that would increase your competencies in the area of data management.

  Write an overview of the restoration process

Write a 700- to 1,050-word paper examining the relationship between restorative justice programs and crime reduction. In your opinion, is it better to assist.

  Analyze an ethical dilemma that you have experienced

Analyze an ethical dilemma that you have experienced in your own professional workplace or community work. Consider how the dilemma was solved.

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