Artificial intelligence engine to play tic tac toe (written in C)

已完成 已发布的 Feb 23, 2008 货到付款
已完成 货到付款

I need an ANSI C implementation of an artificial intelligence engine which plays tic tac toe. For those of you not familiar with the rules of the game, you have a 3x3 board and you have to try and get three pieces in a row (either vertically, horizontally or diagonally). I will have a 2d array which holds the gameboard content. 1 is a white piece, 2 is a black one and 0 is an empty square. I need an AI engine which:

1. Decides what move to make in a similar way as a human being would.

2. Allows you to set a difficulty level (between 1 and 3), to choose how good the computer player should be.

I need a function that I can call to figure out what move the computer should make. I'll pass a pointer to the 2d array that contains the gameboard, which player the computer is controlling (1 or 2), the difficulty level and two out variables which it will fill with the moves that it decides to make (from square x to square y). So you do not need to modify the array inside the actual function (just fill the two out variables with the move that is calculated).

The computer should think ahead and not just make a move based on the current game state, it needs to calculate possible outcomes a few moves ahead and then decide what to do. This should also depend on the difficulty level, and there should be a small amount of randomization as well (I will provide a random function for you to use which is better than rand).

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables):

a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

ANSI C (use the standard C library)

C 编程 工程 游戏控制台 游戏设计 MySQL Odd Jobs PHP 软件构架 软件测试

项目ID: #3746173

关于项目

22个方案 远程项目 活跃的Feb 24, 2008

授予:

anubhawps

See private message.

$63.75 USD 在5天内
(23条评论)
4.0

有22名威客正在参与此工作的竞标,均价$79/小时

MuktoSoftware

See private message.

$76.5 USD 在5天内
(492条评论)
7.5
xmartin

See private message.

$85 USD 在5天内
(67条评论)
6.0
clanmckennavw

See private message.

$63.75 USD 在5天内
(90条评论)
5.4
cloe

See private message.

$34 USD 在5天内
(24条评论)
5.1
vw1472593vw

See private message.

$68 USD 在5天内
(28条评论)
4.9
oooshofdds

See private message.

$255 USD 在5天内
(13条评论)
4.8
24bits

See private message.

$42.5 USD 在5天内
(46条评论)
4.6
systemcoders

See private message.

$85 USD 在5天内
(12条评论)
4.0
ispy1785

See private message.

$59.5 USD 在5天内
(10条评论)
3.9
nabilshams

See private message.

$212.5 USD 在5天内
(7条评论)
3.6
Pepito666

See private message.

$63.75 USD 在5天内
(1条评论)
3.3
cypsl

See private message.

$34 USD 在5天内
(25条评论)
3.2
saifuddinme

See private message.

$42.5 USD 在5天内
(12条评论)
3.0
infodatavw

See private message.

$42.5 USD 在5天内
(8条评论)
1.6
harqodervw

See private message.

$25.5 USD 在5天内
(1条评论)
0.0
geckolux

See private message.

$12.75 USD 在5天内
(0条评论)
1.3
owaisyahyavw

See private message.

$28.05 USD 在5天内
(0条评论)
0.0
vladpms

See private message.

$340 USD 在5天内
(0条评论)
0.0
mksexcel

See private message.

$17 USD 在5天内
(0条评论)
0.0
kareevw

See private message.

$39.95 USD 在5天内
(0条评论)
0.0