Skip to content

In this practical exercise, a Java API with Spring Boot will be created for a Blackjack game. The API will be designed to connect to and manage information in two different databases: MongoDB and MySQL. The Blackjack game will be implemented with all the functionalities necessary to play, such as managing players, card hands, and game rules.

Notifications You must be signed in to change notification settings

paumaneja/5.1-Spring_Framework_Advanced.Webflux_-Blackjack-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

Blackjack Game Application This project is a Blackjack Game Application implemented in Java. The application simulates a card game of Blackjack, where players compete against a dealer. The game is designed to be modular and extendable, allowing easy addition of features and enhancements.

Features

  • Core Gameplay: Supports basic Blackjack rules.
  • Playeres vs Dealer: Play against the dealer with realistic card mechanics.

Game Rules

  • Each player is dealt two cards to start.
  • Players can choose to hit (draw a card) or stand (keep their current hand).
  • The dealer must draw until reaching a minimum score (e.g., 17).
  • The goal is to get as close to 21 as possible without exceeding it.

Tech Stack

Getting Started

  • Prerequisites Ensure you have the following installed:

    • Java Development Kit (JDK) (version 17 or higher)
    • Maven
  • Setup Instructions Clone the repository:

  • Build the project:

    • mvn clean install
  • Run the application:

    • mvn exec:java -Dexec.mainClass="cat.itacademy.s05.t01.n01.S05T01N01Application"
  • Run the tests:

    • mvn test

Project Structure

  • src/main/java: Contains the main application code.
  • src/main/resources: Configuration files and assets.
  • src/test/java: Unit and integration tests.

Future Enhancements

  • Implement advanced Blackjack rules (e.g., splitting, doubling down).
  • Add graphical user interface (GUI) or web-based client.
  • Enhance AI for dealer strategies.

Contributing Contributions are welcome! Follow these steps:

  • Fork the repository. Create a feature branch: git checkout -b feature-name.
  • Commit your changes: git commit -m 'Add feature description'. Push to the branch: git push origin feature-name.
  • Submit a pull request.

About

In this practical exercise, a Java API with Spring Boot will be created for a Blackjack game. The API will be designed to connect to and manage information in two different databases: MongoDB and MySQL. The Blackjack game will be implemented with all the functionalities necessary to play, such as managing players, card hands, and game rules.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages