projet2-ps-23-24-citadels-2024-b is a console-based card game implemented in Java and based on
the Citadel card game. The game is designed for multiple
players, each represented by a Player
object.
The game revolves around the concept of districts, represented by the District
class. Each player can place a district
card during their turn, which costs them a certain amount of gold. The state of the game, including the players' gold
and the districts they have placed, is displayed in the console.
The game is initiated and controlled by the Game
class, which is created and run in the Launcher
class's main
method. The number of players is set at the start of the game, as seen in the Game
constructor.
The IView
interface and its implementation Cli
are responsible for displaying the game's state in the console. They
display the current round, the district a player places, the remaining gold of the player, and the winner of the game
with their score.
This project uses Maven for dependency management. To install the project, follow these steps:
- Clone the repository:
git clone https://github.com/pns-si3-projects/projet2-ps-23-24-citadels-2024-b.git
- Navigate to the project directory:
cd projet2-ps-23-24-citadels-2024-b
- Install the dependencies:
mvn install
To run the project, follow these steps:
- Navigate to the project directory:
cd projet2-ps-23-24-citadels-2024-b
- Run the project:
mvn exec:java
We welcome contributions! Please see our Contributing Guide for more details.
If you have any questions, feel free to reach out any contributors of this repository.