This project is a simple implementation of a Blackjack game in Java, following a Test-Driven Development (TDD) approach. The game consists of a set of classes representing cards, players, and the game logic itself.
The project structure follows Maven conventions and consists of the following main components:
src/main/java/alejandro/arzola/saavedra/david/blackjack
: Contains the source code for the Blackjack game.src/test/java/alejandro/arzola/saavedra/david/blackjack
: Contains the test cases for the Blackjack game.
This project uses Maven as a build tool. To build the project, you can use the following Maven command:
mvn clean install
This will compile the source code, run the tests, and package the application into a JAR file.
As the project is a library for a Blackjack game, there is no standalone application. You can, however, use the classes provided in the src/test/java
directory to create your own Blackjack game scenarios.
To run the tests, you can use the following Maven command:
mvn test
The BlackjackTest
class in the src/test/java
directory contains sample tests for various scenarios, including determining winners based on card values and checking for special combinations like Blackjack.
-
Clone this repository:
git clone https://github.com/AlejandroDavidArzolaSaavedra/TDD-Black-Jack.git
-
Explore the dataset folders to understand the structure.
-
Use the data to train and test your models and contribute to this project.
If you wish to contribute to this project, feel free to do so. You can open issues or send pull requests to improve the code or add new features.
Your collaboration is welcome! 🚀