crystal_mahjongg
Version, currently main branch1 version
- main branchlatestAug 7, 2024
github.com/wileycoleman/crystal_mahjongg
No description declared in shard.yml.
Installation
# Add this to your shard.yml
dependencies:
crystal_mahjongg:
github: wileycoleman/crystal_mahjongg
branch: mainmain is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
>= 1.11.2- License
- MIT
- Target
crystal_mahjonggfrom src/crystal_mahjongg.cr
Dependencies
Runtime Dependencies
- crsfml~> 2.5.2github: oprypin/crsfml
- baked_file_system0.10.0github: schovi/baked_file_system
README
Crystal Mahjongg
A solitaire mahjongg game written in Crystal Language
Installation
- Install Crystal language (version 1.13.1 was used for this but try the latest)
- open a command line and clone this repo then cd into it
shards installcrystal build src/crystal_mahjongg.cr
Now run the executable
./crystal_mahjongg
Usage
Click on matching tiles to remove them. You can only remove tiles that are "Free". This means there is no tile above them and they do not have tiles on both the left and right sides of them. They are free if there is just one tile on the left or on the right.
Tiles "match" if they are identical or if they are in one of the two unique groups of 4 tiles. For the default set used here those unique groups have black squares around their lettering and the lettering is either yellow or black. You can learn more about these tiles from their source site. https://github.com/jimevins/smooth-tileset
Icons
Icons are mostly self explanatory but here is a simple reference.
You change the board number! Just use the backspace key and numeric keys then hit the icon start a new game.
New Game using Board Number in the white box
Undo Last Move
Hint - get a possible move
The following feature are only on Linux
Changes to Linux only Settings page
Pick a different picture file with a set of tiles from your personal collection or your hand drawn tiles. See Resources below.
Change the background color choice
Replace with game tiles with the new picture file of tiles you found and change in background color
Close settings without making changes
Resources
Sources for the default Smooth tile set are open source and available here: https://github.com/jimevins/smooth-tileset
Icons used in this game were all open source with no restrictions
Open Source Font was found at: https://www.theleagueofmoveabletype.com/
The Linux version lets you use a file chooser to pick a different image source file for the tiles. This game is compatible with the really old Kyodai tile sets that were created by fans of various Dos and Windows mahjong games. Most such Fan Art sites have disappeared but a few remain such as this one. Get some while they are still around!
http://strassman.epizy.com/
Contributors
- Cynthia Coleman - creator and maintainer
- [Matthew J. Black][https://github.com/mjblack] - contributor for MacOS compatibility
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
main- Seen
- Aug 7, 2024
- Crystal
>= 1.11.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/wileycoleman/crystal_mahjongg
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1