Find Jobs
Hire Freelancers

Chess by C++

$30-5000 USD

Cerrado
Publicado hace más de 21 años

$30-5000 USD

Pagado a la entrega
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
ID del proyecto: 2885636

Información sobre el proyecto

3 propuestas
Proyecto remoto
Activo hace 21 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
3 freelancers están ofertando un promedio de $304 USD por este trabajo
Avatar del usuario
See private message.
$11,05 USD en 14 días
5,0 (5 comentarios)
3,0
3,0
Avatar del usuario
See private message.
$50 USD en 14 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$850 USD en 14 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED KINGDOM
United Kingdom
0,0
0
Miembro desde nov 19, 2002

Verificación del cliente

Otros trabajos de este cliente

chess programming using C++
$30-5000 USD
¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.