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/blessingofearth.cc
Line
Count
Source
1
#include "scoring/yakus/blessingofearth.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/yaku.h"
10
11
namespace mahjong::yaku {
12
bool isBlessingOfEarth(const GameState& state, const Hand& hand,
13
1
                       const std::vector<const mahjong::Node*>& /*branch*/) {
14
1
  if (hand.open) {
15
0
    return false;
16
0
  }
17
1
  if (state.turnNum > 3) {
18
0
    return false;
19
0
  }
20
1
  if (state.lastCall >= 0) {
21
0
    return false;
22
0
  }
23
1
  if (hand.hasRonned) {
24
0
    return false;
25
0
  }
26
1
  return true;
27
1
}
28
29
REGISTER_YAKU({
30
    .id = "blessingofearth",
31
    .name = "Blessing of Earth",
32
    .type = Yaku::kYakuman,
33
    .value = 13,
34
    .is_yaku_func = yaku::isBlessingOfEarth,
35
});
36
}  // namespace mahjong::yaku