Skip to content

A strategic board game where players strategically maneuver their armies to capture the opponent's flag while protecting their own.

Notifications You must be signed in to change notification settings

tahamusvi/Stratego

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stratego

Description:

This game was created by Sahel and Taha as their final project for the CS50 course. The game combines Taha's work on the core functionality with Sahel's contribution to the graphical user interface (GUI).

This is actually a Gameboard that we tried to create its electronic version.

In this context, "core APIs" refers to the fundamental application programming interfaces (APIs) that are provided by the underlying system or framework. These APIs are designed to perform essential tasks and provide basic functionality.

The game GUI (Graphical User Interface) is the visual interface that allows users to interact with the game. To implement the search feature within the GUI, I utilized the core APIs, which means I leveraged the built-in functionalities provided by the system or framework on which the game is built.

Game

Stratego is a strategic board game that involves two players and a board with a grid of squares. The objective of the game is to capture the opponent's flag while protecting your own. Each player has a set of pieces with different ranks and abilities, and the outcome of each battle is determined by the ranks of the pieces involved.

Files

-The classes inside the 'pieces' folder are used to describe the game pieces. -The 'core' class is responsible for managing the game's core and logic, and its functions are called within the 'gui' classes. -The 'piece' class is the parent class for all the member classes inside the 'pieces' folder. The 'player' class represents a player entity, including their name and their pieces. -The 'Main' class is the main frame of the game, and the 'main' function is located inside it. At the beginning of the game, the frame of this class is displayed. -The 'pickFrame' class is a class that contains a frame for selecting the value of each piece. -The 'playframe' class is a class that contains a frame created for playing the game. -The 'valueFrame' class is a frame that is actually opened within the 'pickFrame' class for selecting the pieces. -The 'AboutUsFrame' class is a class that includes a frame where information about the game developers and their GitHub IDs is displayed."

Installation

To install and set up Stratego on your local environment, follow these steps:

  1. Clone the repository from GitHub: git clone https://github.com/username/stratego.git
  2. Make sure you have Java Development Kit (JDK) installed on your system.
  3. Compile the Java source code files using the appropriate commands, such as javac Main.java.
  4. Run the game by executing the compiled Java file, for example, java Main.

Usage

To play Stratego, follow these instructions:

  1. Ensure that you have completed the installation steps mentioned above.
  2. Start the game by running the Java file as mentioned in the installation steps.
  3. Access the game through the provided interface.
  4. Follow the on-screen instructions to set up the game, make moves, and compete against your opponent.

Dependencies

Stratego relies on the following dependencies:

  • Java Swing: Library for creating graphical user interfaces (GUI).
  • Java AWT: Library for creating GUI components, handling events, and managing layouts.
  • Java IO: Library for input and output operations.
  • Java NET: Library for network-related operations.

Make sure to have these dependencies available in your Java development environment to compile and run the code successfully.

Links

Roles:

For more of our projects, visit our GitHub page linked above. I love you taha

About

A strategic board game where players strategically maneuver their armies to capture the opponent's flag while protecting their own.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages