Libsaki
Core library of Pancake Mahjong
Public Types | Public Member Functions | List of all members
saki::Parsed4s Class Reference

Public Types

using Container = std::vector< Parsed4 >
 

Public Member Functions

 Parsed4s (Container &&parseds)
 Contruct from raw data. More...
 
const Container & data () const
 
int size () const
 
int barkCt () const
 
Container::const_iterator begin () const
 
Container::const_iterator end () const
 
int step4 () const
 
util::Stactor< T34, 34 > effA4 () const
 Compute 4-meld first-class effective tiles. More...
 
std::bitset< 34 > effA4Set () const
 

Constructor & Destructor Documentation

◆ Parsed4s()

saki::Parsed4s::Parsed4s ( Parsed4s::Container &&  parseds)
explicit

Contruct from raw data.

Parameters
parsedsMust have same shanten number for all element, w/o duplication

Member Function Documentation

◆ effA4()

util::Stactor< T34, 34 > saki::Parsed4s::effA4 ( ) const

Compute 4-meld first-class effective tiles.

Returns
All 4-meld first-class effective tiles, sorted in ID-34 order

The documentation for this class was generated from the following files: