GitHunt
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 uifigure and uibutton
  • 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
  • uifigure
  • uibutton
  • imread
  • 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

Contributors

Created March 13, 2026
Updated March 13, 2026