Skip to content

Rafaue/BlackjackJulia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Blackjack in Julia

Blackjack is a popular card game where the player aims to get a score closer to 21 than the dealer without exceeding this value.

Game Description

Game Objective: Get a score closer to 21 than the dealer.

Cards: Cards 2-10 are worth their face value. Jack, Queen, and King are worth 10 points. Ace can be worth 1 or 11 points.

Gameplay: The player and dealer each receive two cards. The player sees one of the dealer's cards.

Player's Turn: The player can draw cards or stand.

Dealer's Turn: The dealer must draw cards until they reach at least 17 points.

Result: The player with the higher score without exceeding 21 wins.

Features

Balance: The player starts with a set balance and can place bets on individual rounds.

Error Handling: The game handles incorrect input and invalid bets.

Game Continuation: After each round, the player can choose to continue or end the game.

Motivation

I wrote this game to practically apply my knowledge of the Julia language. It was my first larger application in Julia, which I created a few months ago.

How to Build and Run the Game

first install julia in your terminal

Windows:
winget install julia -s msstore

Mac:
curl -fsSL https://install.julialang.org | sh

Navigate to the project directory:

cd Blackjack

Run Julia with the project:

julia --project=.

Load the Blackjack module:

using Blackjack

Start the game:

play()

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages