Skip to content

agonyz/readme-blackjack

Repository files navigation

Blackjack (GitHub Readme Game)

Test your luck and strategy in this classic card game. Your goal is to get as close to 21 as possible without going over.

Choose Your Action:

  • Hit 🎴: Draw another card.
  • Stand 🛑: Keep your current hand.
  • New Game 🔄: Start a new game and clear the board.

Ready to play? Click one of the buttons below to make your move and submit your choice! 🍀

Dealer

Card #1Card #2Card #3 Summary
Cards 5s6dQs ✔️
Values 5610 21

Player

Card #1Card #2 Summary
Cards Tc7c
Values 107 17

Game History

Action Events Actor
New Game ADoebeling
Stand agonyz
Dealer: Draw Card
Dealer: Reveal Hole Card
Dealer won: Is closer to 21
Game Finished: Thank you for playing!

Game Commands

Hit Button Stand Button Start new Game Button

How it works

When you click on a link, it will create and submit a new GitHub issue with the desired action. This action triggers a GitHub workflow, which runs a small Typescript script responsible for executing the specified action in the blackjack game. The script then updates the content of the README file to reflect the current game state and commits the changes back to the repository.

Questions/Bugs/Ideas

If you have any questions, encounter any bugs or have ideas to improve the game, you can simply create an issue and mention me.