DEV Community

Ferruscpp
Ferruscpp

Posted on

How I built a Game Theory engine in C++

Hello there, my name is Mike and I've built a game about Prisoner's Dilemma. I write code for Multiplayer Prisoner's Dilemma.
Unlike the 2-players Dilemma it depends on how many people answered Cooperate and Defect. I also came up with some strategies, and that's why I want to find out which is the best. I don't know math well enough to tell which strategy is better, so I want to find out through the tournament. So if you are interested you can download my code here. I want to conduct a tournament, more rules you can find here. In my opinion in this game wins only aggressive strategies, so if you want to prove otherwise send code with your strategy on my email: ferrus.manus.cpp@proton.me.

🤖 Iterated N Prisoner's Dilemma Tournament
Welcome to the N Prisoner's Dilemma Tournament. This Project is ultimate logic battlefield where you can test your skills to win the Tournament. Unlike the classic 2-player version, here you are face to face with a crowd. Your success depends not just on one opponent, but on the collective behavior of the entire group. Rule the crowd or be a sheep in the herd, it's your choice.

⚔️ The Concept
The tournament is not a duel. It's a social simulation. In each round, N participants decide simultaneously: Cooperate or Defect. The charm of Defection is so strong but you will pay for it in the future. The flaws of Cooperation are obvious: fears will they Cooperate too? or not?. But the advantage is good idea of everyone's cooperation.

Top comments (0)