game_theory_tournament/source/Player.hpp

19 lines
384 B
C++
Raw Normal View History

2024-06-28 11:08:57 -04:00
#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