Завершено

Simple Python Project 3 -- 3

You are asked to implement two functions for a game-playing agent for the Gobblet Gobblers game demonstrated in section 2.

Program your strategies in the indicated functions in that file.

a. A state evaluation function giving a minimax value for a game state (this be used in a game-playing tournament pitting all students’ submissions against each other. )

b. An alpha-beta search procedure Written part: Answer the written questions in Section 4.

1.1 Submission

[YourCustomID].py: This file should include your completed programming work. Please do not alter the other Python files or submit other files.

THE GAME

For this, we are playing a two-player game called “Gobblet Gobblers”. It is a variant of tic-tac-toe (or noughts and crosses) with the addition of sized pieces and the ability to move pieces that are already on the board. Larger pieces can “swallow” and conceal smaller pieces, either the player’s own or the opposing player’s. The smaller pieces remain on the board, under the larger ones, and are revealed if the larger pieces are moved. When computing the three-in-a-row objective, only the largest piece in a square is considered. The game’s complete rules are online and may be viewed at

[login to view URL]

As the game is capable of cycling (repeating states), we introduce a new rule for our implementation: If a repeated state occurs, the game is declared a draw between the two

players. We also adopt the convention that the blue player always moves first and the

orange second.

- You must use Python version 2.7 to complete this project.

- Unzip the file Assignment3.zip. The file contains a directory structure, with base class definitions for a game-playing frame-work in the files [login to view URL], game [login to view URL], and game state.py. Game definitions for Gobblet Gobblers is in gobblet.py. Some sample game players are defined in the files in the players directory.

You are principally interested in the [login to view URL] file in the players/gobblet subdirectory, which defines an incomplete Gobblet Gobblers minimax player. You will complete the definition of this player to allow it to play the game.

- Rename players/gobblet/[login to view URL] so that it follows the directions above. This

is the file you will alter.

- You may run the program with this command from the Windows command line

(assuming the Python executable is in your PATH):

python [login to view URL] gobblet gobblet_simple gobblet_simple

Or, on any UNIX/Mac system’s command line:

./[login to view URL] gobblet gobblet_simple gobblet_simple

The first argument specifies the name of the game.

The second and third arguments to the command specify the player modules (Python

files) to use for the game.

[login to view URL] resides in the same directory as your Gobblet agent and defines a

not-very-smart Gobblet player: It simply selects the first move from the list of successors

generated from the current game state.

You can also use gobblet_human, which allows humans (you for instance!) to play the

game as one or both players. Also you can play against your implemented heuristic once

done using the following command.

./[login to view URL] gobblet gobblet_human YourCustomID

If you want to play first or the following:

./[login to view URL] gobblet YourCustomID gobblet_human

If you want your heuristic plays first.

Execute the following command for more information on running the program.

./[login to view URL] -h

The evaluation function, evaluate(), in your GobbletPlayer class is incomplete. Given a

game state, the function should return a numeric value indicating how “favorable” a

game state is to the MIN and MAX agents. (A value greater than 0 indicates a state

favorable to MAX; less than 0, favorable to MIN; exactly 0, a neutral state with no

advantage for either player.)

Implement the evaluation function to return such a numeric value.

Квалификация: AI (Artificial Intelligence) HW/SW, Искусственный интеллект, Python, Архитектура ПО

Показать больше server requirements implement latest version drupal, download project vb6 data base, simple python crawler windows, change rails version existing project, designing project management data base, upgrade rails version existing project, simple python workflow library, engineering project management data base, project fedex implement, project idea implement software engineer, implement google provisioning concept project, project student data base college management oracle, simple python crawler, simple python games, project php data base, simple python web crawler, create simple python project, simple python project, write simple python game project

О работодателе:
( 15 отзыв(-а, -ов) ) Giza, Egypt

ID проекта: #22104484

Поручен:

staratnight

Hello, Sir. I read your opinion seriously. I have experience of 7 years and done similar projects before. As a man of trust, I can develop your project with full perfection. Let me go on, you can get the best project t Больше

$30 USD за 1 день
(14 отзывов(-а))
3.8
alvinpiter

Hello, I am very familiar with minimax algorithm and alpha beta pruning. I've implemented it before for playing tic-tac-toe and othello. Looking forward to working with you.

$30 USD за 3 дней(-я)
(17 отзывов(-а))
4.0

4 фрилансеров(-а) в среднем готовы выполнить эту работу за $79

Artemrodin1987

Hello client!!! I have read your description carefully and I like working like that. I have rich expertise for 5 years in Python, opencv. MAIN SKILLS ◈ web scraping ◈ Deep learning ◈ Image processing ◈ natural langua Больше

$200 USD за 5 дней(-я)
(2 отзывов(-а))
2.0
TeamAppnivi

hi we are team of experienced developers, and will provide you complete work as per the description..

$55 USD за 1 день
(1 отзыв)
1.1