PHP function to generate draughts moves

已取消 已发布的 Aug 23, 2006 货到付款
已取消 货到付款

I need the function which will generate array of possible legal moves in the draughts game.

I mean International 10x10 game.

For instance:

The position is white: King 46, pieces 27, 32 Black: King 1, pieces: 14,16,21

![][1]

function

GenerateMoves ( X............x.x....x.....o....o.............O....) should generate

aMoves = array ('46-41', '46-37', '27-22', '32-28');

aPositions = array (

'X............x.x....x.....o....o........O.........',

'X............x.x....x.....o....o....O.............',

'X............x.x....xo.........o.............O....',

'X............x.x....x.....oo.................O....'

);

If you do not know the rules - you can look here <[url removed, login to view]>

The most complicated rules to program is probably the capture by the king and Turkish capture ( captured pieces are being taken off board after capture is finished )

If you know Java good you can look to this working piece of Java code.

(with Java source and working applet)

<[url removed, login to view]~hjetten/java/[url removed, login to view]>

## Deliverables

Rent A Coder requirements notice: As originally posted, this bid request does not have complete details. Should a dispute arise and this project go into arbitration "as is", the contract's vagueness might cause it to be interpreted against you, even though you were acting in good-faith. So for your protection, if you are interested in this project, please work-out and document the requirements onsite.

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

PHP

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

项目ID: #3745929

关于项目

9个方案 远程项目 活跃的Sep 19, 2007

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

bahe

See private message.

$68 USD 在10天内
(147条评论)
6.5
SvetoslavNedkov

See private message.

$85 USD 在10天内
(64条评论)
5.2
sandgSoftware

See private message.

$68 USD 在10天内
(35条评论)
4.5
cambraca

See private message.

$51 USD 在10天内
(28条评论)
4.2
mygoldensoftvw

See private message.

$85 USD 在10天内
(6条评论)
2.3
cyberplantvw

See private message.

$42.5 USD 在10天内
(4条评论)
1.9
bursuk

See private message.

$17 USD 在10天内
(5条评论)
2.0
websitesforvw

See private message.

$72.25 USD 在10天内
(0条评论)
0.0
mtopolov

See private message.

$85 USD 在10天内
(0条评论)
4.5