Coverage Report

Created: 2026-11-14 03:38

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/nix/store/rr0r40cw3mzzbz0sxrnkvnrjpzb82wpc-j27cjzgh5nmq3y8k6hwa6zpi3qgcjia8-source/src/scoring/yakus/bottomofthesea.cc
Line
Count
Source
1
#include "scoring/yakus/bottomofthesea.h"
2
3
#include <vector>
4
5
#include "analysis/handnode.h"
6
#include "scoring/yakus.h"
7
#include "types/gamestate.h"
8
#include "types/hand.h"
9
#include "types/walls.h"
10
#include "types/yaku.h"
11
12
namespace mahjong::yaku {
13
bool isBottomOfTheSea(const GameState& state, const Hand& /*hand*/,
14
7
                      const std::vector<const mahjong::Node*>& /*branch*/) {
15
7
  return Walls::GetRemainingPieces(state) == 0;
16
7
}
17
18
REGISTER_YAKU({
19
    .id = "bottomofthesea",
20
    .name = "Bottom of the Sea",
21
    .type = Yaku::kOpen,
22
    .value = 1,
23
    .is_yaku_func = yaku::isBottomOfTheSea,
24
});
25
}  // namespace mahjong::yaku