game_theory_tournament/source/Player.hpp
2024-06-28 17:08:57 +02:00

19 lines
384 B
C++

#ifndef PLAYER_H
#define PLAYER_H
typedef enum {
COOPERATE,
CONFLICT,
} reaction_t;
class Player {
public:
long points = 0;
const char * name;
virtual void new_game() = 0;
virtual reaction_t play() = 0;
virtual void push_result(reaction_t opponents_last_reaction) = 0;
};
#endif