Skip to content

OnurTumer91/tjugoettan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tjugoettan

Swedish Blackjack game(Tjugoett) made for the following criterias:

  • Player draws cards and decides whether to hit or stand
  • Ess counted as 1,
  • Player loses if over 21
  • Dealer draws until 17 or more
  • The winner is determined based on hand value comparisons, and ties go to the dealer.

ULM: Card

  • suit: str
  • rank: str
  • value: int
  • show_card()

Deck

  • suits: List
  • ranks: List
  • deck: List
  • create_deck()
  • shuffle()
  • draw_card()
  • print_deck()

Hand

  • cards: List
  • value: int
  • add_card()
  • calculate()
  • show_hand()

Player

  • name: str
  • is_dealer: bool
  • hit()
  • stand()
  • is_busted()
  • show_hand

GameEngine

  • deck: Deck
  • players: List
  • play()
  • player_turn()
  • dealer_turn()
  • check_winner()
  • display_intro()
  • game_over_animation()

About

Programmering_1_uppgift_tjugoettan

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages