Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Agony5757 committed Jul 18, 2023
1 parent d5330af commit b2bac69
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion Mahjong/Encoding/TrainingDataEncodingV2.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ namespace TrainingDataEncoding {
{

}

}

namespace_mahjong_end
Expand Down
8 changes: 8 additions & 0 deletions Pybinder/MahjongPy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ PYBIND11_MODULE(MahjongPyWrapper, m)

m.def("RiverToString", [](const River& river) {return py::bytes(river.to_string()); });

py::class_<RiverTile>(m, "RiverTile")
.def_readonly("tile", &RiverTile::tile)
.def_readonly("number", &RiverTile::number)
.def_readonly("riichi", &RiverTile::riichi)
.def_readonly("remain", &RiverTile::remain)
.def_readonly("fromhand", &RiverTile::fromhand)
;

py::enum_<Wind>(m, "Wind")
.value("East", Wind::East)
.value("South", Wind::South)
Expand Down

0 comments on commit b2bac69

Please sign in to comment.