You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shanten Meld Extraction: Replaced greedy dual-pass meld extraction with recursive backtracking to fix incorrect shanten values for certain hands (e.g., hands with kanchan taatsu like 46789m were miscounted)
Install agari 0.21.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rysb-dev/agari/releases/download/v0.21.0/agari-installer.sh | sh
Python Bindings (agari-python crate): New agari-python crate providing PyO3-based Python bindings for shanten and ukeire calculations, along with general-purpose mahjong utilities (chi/kan helpers, tile parsing, etc.)
Changed
Chi/Kan Utilities Moved to agari-core: Chi and kan utility functions previously in agari-python have been moved into the agari-core library for broader reuse
Fixed
Cargo Clippy Warnings: Resolved all outstanding cargo clippy warnings in agari-core and agari-python
Install agari 0.20.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rysb-dev/agari/releases/download/v0.20.0/agari-installer.sh | sh
Practical Ukeire Zero-Available Waits: Fixed ukeire excluding valid wait tiles when all copies were accounted for (hand + visible). A tile that improves shanten now always appears in the results even when 0 copies remain in the wall, so players can see their full wait shape.
Install agari 0.19.1
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rysb-dev/agari/releases/download/v0.19.1/agari-installer.sh | sh
Practical Ukeire (Tile Acceptance): New calculate_ukeire_with_visible and calculate_ukeire_with_melds_and_visible library functions that account for tiles already visible on the table (discard ponds, open melds, dora indicators). Available copies are computed as 4 - hand_count - visible_count instead of the theoretical 4 - hand_count.
--visible CLI Flag: New --visible <TILES> option for practical ukeire from the command line. Pass comma-separated visible tiles (e.g., --visible 2z,2z,5p) to subtract them from the available pool when computing ukeire.
Changed
Ukeire Documentation: Updated doc comments on all ukeire functions and UkeireTile::available to clarify the difference between theoretical and practical ukeire. Updated README with practical ukeire examples for both CLI and library usage.
Install agari 0.19.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rysb-dev/agari/releases/download/v0.19.0/agari-installer.sh | sh
Shareable URL Support: Generate shareable URLs that encode the full hand configuration for the web calculator
Crates.io Publishing: Package is now available on crates.io with cargo install agari
Fixed
Ukeire Analysis with Called Melds: Fixed ukeire (tile acceptance) producing bogus results for hands with open melds — previously showed nearly all 34 tile types as improving tiles instead of the correct few
Red Five in Shared URLs: Preserved red five (aka dora) notation in the winning tile when generating shareable URLs
Tile Texture Rendering: Embedded Front.svg background directly into all tile SVGs for proper texture/3D effect rendering
Dora Picker Exhausted Tiles: Tiles that have been fully used in the hand are now disabled in the dora/ura dora picker, preventing selection of unavailable tiles
WIN Badge Overlap: Moved the "WIN" label from top-right to bottom-center of tiles to avoid overlap with the remove button
TypeScript Warning: Fixed "Cannot find name 'process'" warning in vite.config.ts by using Vite's built-in mode parameter
Changed
Tile Component Simplification: Removed redundant tile background layering in Tile.svelte since backgrounds are now embedded in SVGs
Install agari 0.13.1
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/ryblogs/agari/releases/download/v0.13.1/agari-installer.sh | sh