DualGameProject FoP Group05
DualGameProject FoP Group05
Project Name
Dualgame : Tic-Tac-Toe and Chess
Team Members
Objectives:
Integration of Two Games:
Combine the simplicity of Tic Tac Toe with the complexity of
Chess within a single application.
Allow users to seamlessly switch between the two games.
Graphical User Interface (GUI):
Implement an intuitive and visually appealing GUI using SDL2.
Ensure user-friendly navigation and interaction.
Game Logic:
Implement the rules and logic for both Tic Tac Toe and Chess.
Develop an algorithm for legal moves with programming
language (c and c++) and game outcomes.
Multiplayer Support:
Facilitate two-player mode for both games.
Allow users to play against each other on the same device.
Project Features:
Main Menu:
• A central hub for users to choose between Tic Tac Toe and
Chess.
Game Screens:
• Separate screens for each game, with dedicated interfaces
tailored to their specific requirements.
User Input Handling:
• Responsive handling of mouse and keyboard input for player
interactions.
Graphics and Animation:
• Utilize SDL2 for rendering high-quality graphics and smooth
animations.
Multiplayer Mode:
• Enable two players to engage in a game simultaneously.
CheckMate:
After pressing ‘2’ in CHESS MENU (AI PART):
CREDIT PAGE
Project Modules:
The project is diveded into three major modules-
tiktakshape.h:
tiktakrander.h:
tiktakevent.h:
starter.h:
Function in this header file:
game.h:
credit.h:
copyofMain.h:
chessmain.h:
chessboard.h:
chess.h:
piecemanager.h:
checkmatePage.h:
Platform,Library&Tools:
• SDL2 for graphical interface
• VS code for code editor
• C and C++ as programming language
• Github for getting ideas
Limitations:
Throughout the whole project, we found few errors. In the portionof
chess we were unable to produce an AI so that we couldn’t playthe
single player mode. There were also some error in that part like
castling and promotion of pawn is not possible.
Conclusion:
In conclusion, the SDL2-based tic tac toe and chess game project
has successfully achieved its objectives of providing an engaging,
visually appealing, and functional digital rendition of the classic board
game. The utilization of SDL2 libraries has proven instrumental in
creating a robust and dynamic gaming environment. This project
not only serves as a testament to the capabilities of SDL2 but also
as a stepping stone for future developments and enhancements in
the realm of digital chess gaming.
Future Plan:
In our project there is no successfully implemented AI, in chess we
didn’t applied AI and in tic tac toe our AI is giving wrong result
sometimes. We might add AI in later. Furthermore, we will add
timer in chess and tic tac toe and save options in them.
https://wiki.libsdl.org/SDL2/FrontPage
https://wiki.libsdl.org/SDL_image/FrontPage
[3] YouTube
https://www.youtube.com/
https://github.com/topics/2d-game/
[5] ChatGPT
https://chat.openai.com