DI
DianaRadulescu/macao-card-game
Interactive MATLAB card game inspired by Macao, featuring card textures, random hand generation, and a GUI built with uifigure.
Macao Card Game in MATLAB ๐
An interactive card game prototype developed in MATLAB, using a graphical user interface built with uifigure and card image assets for visual rendering.
The project simulates a simplified Macao-style card game, where the player can generate a random hand, draw additional cards, and play cards into the center area of the table through clickable UI elements.
Overview
This project was built as a small graphical game in MATLAB, combining:
- GUI development with
uifigureanduibutton - random card generation from a virtual deck
- image-based card rendering
- simple hand management logic
The application creates a card deck, assigns image textures to each card, displays a playable hand, and allows user interaction through buttons.
Features
- Graphical interface built in MATLAB
- Custom card deck generation
- Card textures loaded from image files
- Random 4-card starting hand
- Draw button for adding a new card from the deck
- Clickable cards that move to the center of the table
- Basic deck state management
Technologies Used
- MATLAB
uifigureuibuttonimread- Struct arrays and callback functions
Project Structure
macao-card-game/
โโโ assets/
โ โโโ cards/
โ โโโ A_inima.png
โ โโโ 7_inima.png
โ โโโ ...
โ โโโ k_frunza.png
โโโ macao2.m
โโโ README.md
โโโ .gitignore
On this page
Contributors
Created March 13, 2026
Updated March 13, 2026