CHESS - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

CHESS

Description:

CHESS. By: Daniel Gala, Dave Fouts, Fred Kukral. Data/Interface Layer. QT commands ... Determines validity of moves based on the common rules of chess. ... – PowerPoint PPT presentation

Number of Views:54
Avg rating:3.0/5.0
Slides: 9
Provided by: davef62
Category:

less

Transcript and Presenter's Notes

Title: CHESS


1
CHESS
  • By Daniel Gala, Dave Fouts, Fred Kukral

2
Data/Interface Layer
  • QT commands
  • QObject Board class
  • Connect slots, save QPushButtons
  • Clk() move a piece
  • Check()
  • Save/Restore/New Game files
  • setupBoard() create pieces, place on board
    (PC32, PB88, SQ88)

3
New Board
4
Presentation Layer
  • Signals and Slots for a grid of 64 (Push Buttons)
  • Used JPEG graphics for each piece
  • Used of GIMP to manipulate graphic images
  • Miscellaneous controls (quitting program, showing
    which player is active, new, save, and load game)

5
Application Layer
  • Determines validity of moves based on the common
    rules of chess.
  • Communicates with Data layer in move computation
    with a yes/no response to a move request.

6
Pieces
  • Each Piece class receives 4 integers that will
    get information about the square loaction on an 8
    x 8 array.
  • Checkmove is called to verify a legal move and
    returns an integer 1 if valid back to the
    Application Layer.

7
Pieces
8
C Concepts Used
  • Inheritance is used for the various pieces, all
    of which are derived from a base class (Piece)
  • QObject Board class defines the board and x,y
    coordinate system for piece movement.
  • Communication Channels are used between thee
    distinct layers of program execution.
Write a Comment
User Comments (0)
About PowerShow.com