Skip to content

Visualize your Mahjong boards as heatmaps! ๐Ÿ€„

License

Notifications You must be signed in to change notification settings

TrongTheAlpaca/mahjong-heatmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Mahjong Heatmap

MIT License Code style: black

"Visualize your Mahjong boards as heatmaps! ๐Ÿ€„"

Preface

The code you are currently reading was originally designed for visualizing Japanese Mahjong board states, and is used in my thesis:

"A Supervised Attention-Based Multiclass Classifier for Tile Discarding in Japanese Mahjong"

The code has since been improved for future use.

If you choose to use it in your projects, be it academic or personal, it would mean a lot to me if you credited my work.

How to use

  1. Copy mahjong_heatmap.py into your project.
  2. Install necessary Python libraries (see requirements.txt).
    pip install -r requirements.txt
  3. Import file into your code, see Jupyter Notebook for example usages.

Examples

See resources and the Jupyter Notebook for more examples.

Visualizing Mahjong board state

Useful for presenting a board state matrix:

Tenhou Board Heatmap

Colorful Heatmaps

You can create colorful heatmaps to spice up your works:

About

Visualize your Mahjong boards as heatmaps! ๐Ÿ€„

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published