PHP function to generate draughts moves

Cancelled Posted Aug 23, 2006 Paid on delivery
Cancelled Paid on delivery

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

Engineering Game Consoles Game Design MySQL PHP Software Architecture Software Testing

Project ID: #3745929

About the project

9 proposals Remote project Active Sep 19, 2007

9 freelancers are bidding on average $64 for this job

bahe

See private message.

$68 USD in 10 days
(147 Reviews)
6.5
SvetoslavNedkov

See private message.

$85 USD in 10 days
(64 Reviews)
5.2
sandgSoftware

See private message.

$68 USD in 10 days
(35 Reviews)
4.5
cambraca

See private message.

$51 USD in 10 days
(28 Reviews)
4.2
mygoldensoftvw

See private message.

$85 USD in 10 days
(6 Reviews)
2.3
cyberplantvw

See private message.

$42.5 USD in 10 days
(4 Reviews)
1.9
bursuk

See private message.

$17 USD in 10 days
(5 Reviews)
2.0
websitesforvw

See private message.

$72.25 USD in 10 days
(0 Reviews)
0.0
mtopolov

See private message.

$85 USD in 10 days
(0 Reviews)
4.5