Coverage report for ai


src/
File: src/bots/Forker.hpp
Date: 2024-06-25 10:57:00
Lines:
0/1
0.0%
Functions:
0/0
-%
Branches:
0/2
0.0%

Line Branch Exec Source
1 /*
2 ** EPITECH PROJECT, 2024
3 ** zappy/ai
4 ** File description:
5 ** Forker.hpp
6 */
7
8 #ifndef FORKER_HPP_
9 #define FORKER_HPP_
10
11 #include "ABotPattern.hpp"
12 #include <sys/wait.h>
13
14 class Forker : public ABotPattern
15 {
16 public:
17 void initChild() override;
18 void updateStrategy() override;
19
20 private:
21 unsigned int _idBot = 1;
22
23 void forkNewBot();
24 bool handleSurvive();
25 };
26
27 #endif // FORKER_HPP_
28