Find Jobs
Hire Freelancers

Chess by C++

$30-5000 USD

Kapalı
İlan edilme: 21 yıldan fazla önce

$30-5000 USD

Teslimde ödenir
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
Proje No: 2885636

Proje hakkında

3 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 21 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
3 freelancer bu proje için ortalama $304 USD teklif veriyor
Kullanıcı Avatarı
See private message.
$11,05 USD 14 gün içinde
5,0 (5 değerlendirme)
3,0
3,0
Kullanıcı Avatarı
See private message.
$50 USD 14 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
See private message.
$850 USD 14 gün içinde
0,0 (0 değerlendirme)
0,0
0,0

Müşteri hakkında

   UNITED KINGDOM bayrağı
United Kingdom
0,0
0
Kas 19, 2002 tarihinden bu yana üye

Müşteri Doğrulaması

Bu müşterinin diğer işleri

chess programming using C++
$30-5000 USD
Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.