chess programming using C++

Lengkap Disiarkan Nov 20, 2002 Dibayar semasa penghantaran
Lengkap Dibayar semasa penghantaran

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

Pengaturcaraan C Kejuruteraan Linux MySQL PHP Kejuruteraan Perisian Ujian Perisian UNIX

ID Projek: #2885849

Tentang projek

13 cadangan Projek jarak jauh Aktif Nov 21, 2002

Dianugerahkan kepada:

idleswell

See private message.

$12 USD dalam 14 hari
(171 Ulasan)
5.9

13 pekerja bebas membida secara purata $47 untuk pekerjaan ini

progwriter

See private message.

$68 USD dalam 14 hari
(620 Ulasan)
7.7
emesevw

See private message.

$8.5 USD dalam 14 hari
(111 Ulasan)
4.4
cosmicchips

See private message.

$17 USD dalam 14 hari
(22 Ulasan)
3.4
stefanc

See private message.

$12.75 USD dalam 14 hari
(17 Ulasan)
3.0
veenaconsultants

See private message.

$131.75 USD dalam 14 hari
(10 Ulasan)
2.8
sfunds

See private message.

$42.5 USD dalam 14 hari
(5 Ulasan)
2.9
olkavw

See private message.

$17 USD dalam 14 hari
(2 Ulasan)
2.2
godotvw

See private message.

$8.5 USD dalam 14 hari
(3 Ulasan)
1.9
alliedtechn

See private message.

$34 USD dalam 14 hari
(0 Ulasan)
0.0
shazamvw

See private message.

$5.95 USD dalam 14 hari
(0 Ulasan)
0.0
whiterosevw

See private message.

$212.5 USD dalam 14 hari
(0 Ulasan)
0.0
jaffacakevw

See private message.

$42.5 USD dalam 14 hari
(0 Ulasan)
0.0