0% found this document useful (0 votes)
25 views9 pages

Chess_Project_Report

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views9 pages

Chess_Project_Report

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Chess Game Project

Team Members:
Trịnh Võ Nam Kiệt
Đoàn Tuấn Anh

Date of Submission: Saturday, 21st December


Project Report 1

Table of Contents

1 Project Overview 2

2 Requirements Specification 2

3 Design Document 2

4 Implementation Details 3

5 Testing 4

6 Future Improvements 4

7 Screenshots and Descriptions 5

8 Install instruction 7

9 Contact Info 8
Project Report 2

1. Project Overview
This project aims to develop a functional and interactive chess game. The main objectives
include implementing core chess rules, designing a user-friendly interface, and ensuring a
smooth gameplay experience. Key goals include allowing players to play locally (PvP) or
with an AI opponent.

2. Requirements Specification
The game includes the following features:

• Full implementation of standard chess rules.

• Player vs Player (PvP) mode.

• Option to play against an AI.

• Animated piece movements.

• Settings menu for customization (e.g., sounds, themes).

• Board to track moves done.

• User-friendly menu navigation.

• Option to save and load saved games.

3. Design Document
The architecture consists of the following components:

• Main Menu: Handles navigation between game options.

• Game Engine: Controls game logic and rules.

• UI Manager: Manages the display of the game board and pieces.

• AI Module: Implements AI logic for computer opponents.

• Game State Manager: Switches between Menu, Game, Settings, and Pause
screen.

Class Diagram:
Project Report 3

4. Implementation Details
The project is implemented using C++ with the SFML library and Stockfish.
The code is organized into the following structure:

• Header files (.h) are stored in the include folder.

• Source files (.cpp) are stored in the src folder.

Main Components:

• Game.cpp / Game.h: Implements the core game logic, including board manage-
ment, rules enforcement, and turn management.

• Menu.cpp / Menu.h: Manages the main menu interface, allowing players to start
a game, access settings, or exit.

• Settings.cpp / Settings.h: Controls user preferences, such as sound settings,


themes, and other customization options.

• Pause.cpp / Pause.h: Handles the pause screen, enabling players to resume or


quit a game.

• AI.cpp / AI.h: Implements AI logic, allowing the game to generate moves when
playing against a computer opponent.

• StoredSystem.cpp / StoredSystem.h: Saves the current state of the game into


a JSON file and allows user to load saved games from it.

External Libraries:

• SFML: Used for graphics rendering, user input handling, and animation.

• Stockfish: Provides the AI logic for computer opponents.


Project Report 4

5. Testing
The game underwent multiple testing phases:

• Functional Testing: Ensured all chess rules are correctly implemented.

• UI Testing: Verified smooth interactions and user navigation.

• Performance Testing: Ensured animations and AI calculations perform efficiently.

Results: All core functionalities passed testing.

6. Future Improvements
The following enhancements are planned for future versions:

• Online multiplayer functionality.

• Additional chess themes and pieces designs.

• Improved AI with adaptive difficulty.

• Enhanced animations and sound effects.

• Develop adaptability to support different screen sizes.


Project Report 5

7. Screenshots and Descriptions


Project Report 6
Project Report 7

8. Install instruction
1. Extract Project.rar.

2. Open the Project folder and navigate to the build directory.

3. Double-click Chess.exe to start playing.


Project Report 8

9. Contact Info
• Email:
[email protected] (Nam Kiệt),
[email protected] (Tuấn Anh)

• Phone:
0787571406 (Nam Kiệt)
0762581546 (Tuấn Anh)

• Facebook:
https://www.facebook.com/profile.php?id=61559798986671 (Nam Kiệt)
https://www.facebook.com/profile.php?id=100006042914532 (Tuấn Anh)

You might also like