Blackjack Practice (by GPT-4)

BlackJackPractice App Logo

Introduction

BlackJackPractice is an iOS app designed to help users master blackjack by practicing splits, soft totals, and hard totals. This app demonstrates the power of using advanced AI tools like GPT-4 to create an iOS app with minimal coding knowledge. By following GPT-4 instructions, users can create a fully functional app with ease.

The app’s code is generated using Reflect’s AI Palette, using the prompt:

You are iOS-GPT. Your role is to provide advice on how to build iOS apps. This is our past conversation:

{input}

The whole conversation is documented in this Reflect Note.

Getting Started

To set up the project locally, follow these steps:

  1. Clone the repository to your local machine: git clone https://github.com/username/BlackJackPractice.git
  2. Open the BlackJackPractice.xcodeproj file in Xcode.
  3. Ensure that you have the required dependencies installed. If not, follow the instructions provided in the “Dependencies” section below.
  4. Build and run the app in Xcode using the default simulator or a connected iOS device.

Dependencies

Usage

BlackJackPractice is an intuitive app that helps users practice their blackjack skills. To use the app:

  1. Launch the app on your iOS device or simulator.
  2. The main screen will display the player’s two cards and the dealer’s up card.
  3. Use the provided buttons to select whether to stand, hit, split or double.
  4. The app will provide feedback on your decision, helping you learn the correct blackjack strategy.
  5. Press the “Deal” button to generate a new set of cards and continue practicing.

Screenshots

Menu Screenshot Split Screenshot Soft Screenshot Hard Screenshot

Contributing

We welcome contributions to the BlackJackPractice project! To contribute, please follow these steps:

  1. Fork the repository on GitHub.
  2. Clone your fork to your local machine: git clone https://github.com/your-username/BlackJackPractice.git
  3. Create a new branch for your changes: git checkout -b your-feature-branch
  4. Commit your changes and push them to your fork: git push origin your-feature-branch
  5. Open a pull request on the original repository, describing your changes and providing relevant context.

For any questions, feature requests, or bug reports, please open an issue on the GitHub repository.

Code of Conduct

We are committed to maintaining a welcoming and inclusive environment for all contributors. Please adhere to the following guidelines:

  • Treat all contributors with respect and kindness.
  • Use inclusive language and avoid offensive or derogatory terms.
  • Focus on constructive feedback and avoid personal attacks.
  • Report any violations of the code of conduct to the project maintainers.

License

The BlackJackPractice app is released under the MIT License (https://opensource.org/licenses/MIT). Please note that the Python code was generated using Github Copilot, the Swift code using Reflect’s AI Palette (which uses GPT-4), and the logo using Midjourney. Each tool may have its own licensing terms, so be sure to review and comply with those terms when using or modifying the code.

Acknowledgments

We would like to thank the following individuals, organizations, and resources for their contributions to the development of the BlackJackPractice app:

  • Wizard of Odds Basic strategy calculator, using rules: 4+ deck, dealer stands on soft 17, DAS, no surrender, dealer peeks for BJ
  • Reflect’s AI Palette for generating Swift code using GPT-4
  • Midjourney for creating the app logo
  • Github Copilot for generating Python code
  • All contributors and users who have provided valuable feedback and support

GitHub

View Github