chess programming using C++

Completado Publicado Nov 20, 2002 Pagado a la entrega
Completado Pagado a la entrega

Write a C++ program "[url removed, login to view]" that allows two players to play a game of chess. Use the guide below. Your program does not have to be able to suggest moves, reject illegal moves, or cope with the promotion of pieces, castling, etc.. Try not to use C techniques that have C++ equivalents. Input and output need only be through text (cin, cout and cerr). Guide 1. Create two enumerated types: PieceType and PlayerColour. The piece types are pawn, castle, knight, bishop, queen and king. The player colours are black and white. 2. Create a Piece structure, which stores the type & colour of a piece. 3. Create a global array of pointers to Pieces, in which to store the board: Piece* board [8][8]; // an entry of 0 means 'no piece' 4. Write a function to put a player's pieces on the board at their initial positions. This function should take one argument: player colour. Remember to create each new Piece before setting its type&colour. 5. Write a function to display the board in its current state. Use upper case characters for black pieces and lower case characters for white pieces (or vice-versa), eg. "P" for a black pawn. 6. Write a function to input a move in the form "FromRow FromColumn ToRow ToColumn", eg. "1 b 3 c". This function should only accept the four inputs if they are of the correct types, and should convert the two character inputs to numerical values. For this exercise only, use the following global variables: int fromRow,fromColumn,toRow,toColumn; 7. Write a function to carry out a move that has been input. This should output a congratulatory message if a king is taken. 8. Finish your program by writing the main function (short!) to blank the board, put the players pieces on it, and then repeatedly display the board, input a move and carry out that move. 9. Test your program.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.

## Platform

unix

Programación en C Ingeniería Linux MySQL PHP Arquitectura de software Verificación de software UNIX

Nº del proyecto: #2885849

Sobre el proyecto

13 propuestas Proyecto remoto Activo Nov 21, 2002

Adjudicado a:

idleswell

See private message.

$12 USD en 14 días
(171 comentarios)
5.9

13 freelancers están ofertando un promedio de $47 por este trabajo

progwriter

See private message.

$68 USD en 14 días
(620 comentarios)
7.7
emesevw

See private message.

$8.5 USD en 14 días
(111 comentarios)
4.4
cosmicchips

See private message.

$17 USD en 14 días
(22 comentarios)
3.4
stefanc

See private message.

$12.75 USD en 14 días
(17 comentarios)
3.0
veenaconsultants

See private message.

$131.75 USD en 14 días
(10 comentarios)
2.8
sfunds

See private message.

$42.5 USD en 14 días
(5 comentarios)
2.9
olkavw

See private message.

$17 USD en 14 días
(2 comentarios)
2.2
godotvw

See private message.

$8.5 USD en 14 días
(3 comentarios)
1.9
alliedtechn

See private message.

$34 USD en 14 días
(0 comentarios)
0.0
shazamvw

See private message.

$5.95 USD en 14 días
(0 comentarios)
0.0
whiterosevw

See private message.

$212.5 USD en 14 días
(0 comentarios)
0.0
jaffacakevw

See private message.

$42.5 USD en 14 días
(0 comentarios)
0.0