Terminal-Based Multiplayer Blackjack
A networked Python Blackjack game where players connect via TCP socket clients to an authoritative game server.
Project Overview
This project implements a terminal-based Blackjack game utilizing an authoritative client-server networking model in Python. The server hosts game state, manages shoe shuffling, controls dealer mechanics, and resolves game outcomes, while multiple client instances communicate moves (Hit, Stand, Double Down) across network sockets.
Core Features
Authoritative Server
Prevents client-side manipulation by maintaining the official deck state and enforcing standard casino rules.
Socket Protocol
Structured string message protocol over TCP sockets handling connection handshakes and player turns.
Automated Dealer Engine
Dealer algorithm following strict rules (hits on soft 16, stands on 17+) and evaluates multi-player payouts.
Interactive Terminal UI
ANSI-enhanced terminal display rendering playing cards, hand values, and player chip balances.
Video Demonstration
What I Learned
Mastered asynchronous socket communication, serialization/deserialization of game commands, dead-lock prevention, and robust error handling when clients unexpectedly disconnect mid-round.