A card game built in Lisp with a beautiful HTML GUI.
Charm is a card game where each player receives 6 cards with:
- Numbers: 1 through 6
- Colors: Red, Orange, Yellow, Green, Blue, and Violet
The game generates a deck of 36 unique cards (6 numbers × 6 colors) and deals them randomly to players.
- Deck of 36 cards (6 numbers × 6 colors)
- Random card dealing
- HTML-based GUI with color-coded cards
- Supports multiple players (default: 4 players)
- Beautiful visual representation of hands
- A Common Lisp implementation (SBCL, CCL, or CLISP recommended)
- Clone or download this repository
- Ensure you have a Common Lisp interpreter installed
sbcl --load main.lispOr with CLISP:
clisp main.lispAfter running the game, a file called game.html will be generated. Simply open it in your web browser to see the beautiful card interface!
charm/
├── main.lisp # Entry point and game runner
├── game.lisp # Core game logic (cards, deck, dealing)
├── gui.lisp # GUI generation (HTML interface)
└── README.md # This file
- Card Creation: Each card has a number (1-6) and a color
- Deck Generation: Creates all 36 possible card combinations
- Dealing: Randomly shuffles and deals 6 cards to each player
- Display: Generates an HTML file showing each player's hand with color-coded cards
- Red
- Orange
- Yellow
- Green
- Blue
- Violet
You can extend this game by adding:
- Game rules and turn mechanics
- Player interaction
- Card playing logic
- Scoring system
- Multiplayer networking
Feel free to use and modify this code for your own projects!