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/fullyconcealedhand.cc
Line
Count
Source
1
#include "scoring/yakus/fullyconcealedhand.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 isFullyConcealedHand(const GameState& state, const Hand& hand,
14
5
                          const std::vector<const mahjong::Node*>& /*branch*/) {
15
5
  return state.currentPlayer == hand.id && !hand.open &&
16
5
         Walls::GetRemainingPieces(state) > 0;
17
5
}
18
19
REGISTER_YAKU({
20
    .id = "fullyconcealedhand",
21
    .name = "Fully Concealed Hand",
22
    .type = Yaku::kClosed,
23
    .value = 1,
24
    .is_yaku_func = yaku::isFullyConcealedHand,
25
});
26
}  // namespace mahjong::yaku