Question: A knowledge - based agent ( KBA ) combines general knowledge with current percepts to infer hidden aspects of the state prior to selecting actions.
A knowledgebased agent KBA combines general knowledge with current percepts to infer hidden aspects of the state prior to selecting actions. Inference means deriving new sentences from old ones.
In this section, you will solve an exercise to emulate how a knowledgebased agent infers knowledge from the current state in a Minesweeper game.
Minesweeper Rules:
The board is divided into cells, with mines randomly distributed. To win, the logical agent needs to open all the cells. The number on a cell shows the number of mines adjacent to it Using this information, the agent must determine cells that are safe, and cells that contain mines.
If you want to get familiar with minesweeper, you can play it here: online
Inference
The next board contains mines, and each coordinate cell is labeled xy as a Cartesian plane.
Suppose you have implemented a knowledgebased agent and start to analyze the current state, place a flag in the cells in which the agent can determine with certainty that there is a mine.
Logical Sentences :
For this exercise, read this information: Github
Formulate the agent knowledge as logical sentence for exercise Each cell will be labeled as the concatenation of the xy coordinates, for instance, cell is cell is and so on
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
