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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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