Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

So this assignment is to implement an AI agent that can play checkers. Please, read carefully. You'll need to create a playing environment in which

So this assignment is to implement an AI agent that can play checkers. Please, read carefully. You'll need to create a playing environment in which both the human and AI can make moves.

You do not need to implement any GUI for this. A simple command prompt based menu will work.

The checkers rules that your agent will use:

1. a jumping/taking move is forced. If a player has several jumping/taking moves, all of them are possible moves the player can take

2. a queen gains only the ability to move backwards

Here's an online game that uses these rules: http://www.247checkers.com

The parts of this assignment are as follows:

1. A simple turn-based game, where both the human and AI make moves on a checkers board. The program should output a very simple text-based representation of the board.

2. When it's the human's turn, the human types the coordinates of "from cell" and the "to cell". Each coordinate is of the form : ex: "45" goes to "56".

3. When it's the AI's turn, it will run the minmax algorithm, which outputs the suggested move. For this, you'll need to implement the minmax algorithm, whose pseudo-code is provided. Each state in the algorithm corresponds to a state in the game. One way to represent the state is with a 8x8 array. Each cell is either 0 (blank), 1 (white piece), 2(white queen), -1(black piece), -2(black queen).

4. Implement the heuristic evaluation that is used to evaluate the states at a certain depth (say depth 4). Come up with 2-3 simple heuristic features.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions