Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

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

About

Interactive MATLAB card game inspired by Macao, featuring card textures, random hand generation, and a GUI built with uifigure.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages