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

An iterable virtual list of all tile-counts whose containing tiles sum up to a given number. More...

#include <tile_count_list.h>

Classes

struct  End
 
class  Iter
 

Public Member Functions

 TileCountList (int sum, T34 min=T34(0), T34 max=T34(33))
 Contruct a virtual list of hands formed by tiles in range [min, max]. More...
 
Iter begin ()
 
End end ()
 

Detailed Description

An iterable virtual list of all tile-counts whose containing tiles sum up to a given number.

Constructor & Destructor Documentation

◆ TileCountList()

saki::TileCountList::TileCountList ( int  sum,
T34  min = T34(0),
T34  max = T34(33) 
)
explicit

Contruct a virtual list of hands formed by tiles in range [min, max].

Parameters
sumSum of tiles in the hand

By "hand" we mean maximun of each kind of tile is 4


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