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.
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.
- 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
- MATLAB
uifigureuibuttonimread- Struct arrays and callback functions
macao-card-game/
├── assets/
│ └── cards/
│ ├── A_inima.png
│ ├── 7_inima.png
│ ├── ...
│ └── k_frunza.png
├── macao2.m
├── README.md
└── .gitignore