1 / 15

Chess ++

Chess ++. Goals. Create a functional version of chess Adding bonus features Attack and defense Bonus cards Health bars Save functionality/New Game options Testing framework. Working Chess. Back End structure Global variables Chesspiece object ChessSquare object ChessBoard object.

bernie
Download Presentation

Chess ++

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chess ++

  2. Goals • Create a functional version of chess • Adding bonus features • Attack and defense • Bonus cards • Health bars • Save functionality/New Game options • Testing framework

  3. Working Chess • Back End structure • Global variables • Chesspiece object • ChessSquare object • ChessBoard object

  4. Global variables • The turn (which colour pieces can be moved) • Active vectors (which colour pieces are on the board) • Eliminated vectors (which pieces have been eliminated) • King vectors (for check and checkmate) • The board (a multidimensional array of chess squares)

  5. ChessPiece Object • Object storing piece information • Can be any one of pawn, knight, bishop, rook, queen or king • Stores position, attack, defense, health • Movement capabilities dependent on piece (inheritance)

  6. ChessSquare Object • For displaying information about the chessboard • Can contain a piece or not (and display this accordingly) • Responds to mouse click events

  7. ChessBoard Object • Contains information on the chess game • Functions in ChessBoard affect the global variable board • Passed to the Mainwindow (class which displays chess information) • Used to set up a chess board

  8. Front End • Booyeong?

  9. Promotion • Alex?

  10. Bonus Features • Attack and Defense • Health Bars • Bonus Cards

  11. Attack and Defense • A player has the option of attacking another piece in their turn

  12. Health Bars • Ali?

  13. Bonus Cards • Alex?

  14. Game options • New Game • Save Game • Load Game

  15. Testing • Fiona?

More Related