PHP function to generate draughts moves

Cancellato Pubblicato Aug 23, 2006 Pagato alla consegna
Cancellato Pagato alla consegna

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

Ingegneria Console Giochi Progettazione Giochi MySQL PHP Architettura Software Testare Software

Rif. progetto: #3745929

Info sul progetto

9 proposte Progetto a distanza Attivo Sep 19, 2007

9 freelance hanno fatto un'offerta media di $64 per questo lavoro

bahe

See private message.

$68 USD in 10 giorni
(147 valutazioni)
6.5
SvetoslavNedkov

See private message.

$85 USD in 10 giorni
(64 valutazioni)
5.2
sandgSoftware

See private message.

$68 USD in 10 giorni
(35 valutazioni)
4.5
cambraca

See private message.

$51 USD in 10 giorni
(28 valutazioni)
4.2
mygoldensoftvw

See private message.

$85 USD in 10 giorni
(6 valutazioni)
2.3
cyberplantvw

See private message.

$42.5 USD in 10 giorni
(4 valutazioni)
1.9
bursuk

See private message.

$17 USD in 10 giorni
(5 valutazioni)
2.0
websitesforvw

See private message.

$72.25 USD in 10 giorni
(0 valutazioni)
0.0
mtopolov

See private message.

$85 USD in 10 giorni
(0 valutazioni)
4.5