Coverage Report

Created: 2025-09-03 03:49

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/nix/store/i1aar97n7b4yf8rk94p66if25brfvvdx-gqvzl8a5pvrg3xj44q0msrndcripi8dk-source/src/controllers/totobot.h
Line
Count
Source
1
#pragma once
2
#include <memory>
3
#include <string>
4
#include <vector>
5
6
#include "controllers/playercontroller.h"
7
#include "types/event.h"
8
#include "types/piecetype.h"
9
#include "types/winds.h"
10
11
namespace mahjong {
12
13
class TotoBot : public PlayerController {
14
 public:
15
0
  static std::unique_ptr<PlayerController> New() {
16
0
    return std::make_unique<TotoBot>();
17
0
  }
18
19
  void GameStart(int _playerID) override;
20
  void RoundStart(std::vector<Piece> hand, Wind seatWind,
21
                  Wind prevalentWind) override;
22
  void ReceiveEvent(Event e) override;
23
  Event RetrieveDecision() override;
24
25
0
  std::string Name() override { return "TotoBot"; };
26
27
 private:
28
  std::vector<Piece> hand_;
29
  Event lastEvent_;
30
};
31
32
}  // namespace mahjong