惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 【当耐特】
博客园 - 聂微东
V
Visual Studio Blog
博客园_首页
Engineering at Meta
Engineering at Meta
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The Cloudflare Blog
人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
F
Fortinet All Blogs
C
Check Point Blog
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Can your code survive 1.5 Billion rounds of digital betra...
Ferruscpp · 2026-04-26 · via DEV Community
Cover image for Can your code survive 1.5 Billion rounds of digital betrayal? Submit your strategy!

Ferruscpp

Crazy Start

I built N-Prisoner's Dilemma game engine in C++ and run a tournament to find out what strategy is the best? Write your strategy and fight with other players in this game theory battle.
When I decided to make this game I couldn't even imagine that my ThinkPad would be the place of the Ten minute war. 25 strategies fought in more than 0.5 Million of battles each has approximately 3000 rounds. I also created such a "genius" strategy which crashed my laptop, so I have to restart my ThinkPad two times. But I didn't stop and run Evolution Game where at the end survives only the strongest. I also asked AI to write 4 strategies and one of them got into the TOP-4.

Tournament On This Tuesday

Send me Your strategies, here ferrus.manus.cpp@proton.me.
Strategy must follow certain rules and I will accept it no later than 19:00 28.04.2026.
This is a weekly tournament, so stay tuned for new rounds!

How to Create Your Own Strategy

Make your strategy. It's pretty easy, then send it to my Email to keep it secret before Tournament.

#pragma once
#include "Ndilemma_game.h"

class your_nickname : public Player
{
protected:
public:
    bool move(int move_cnt) override
    {
        return true;// or false;
    }

    void print(ostream& out) const override
    {
        out << "your_nickname number " << number + 1;
    }
};

Enter fullscreen mode Exit fullscreen mode

More Information About Project

GitHub: https://github.com/Ferruscpp/Ndilemma
Rules: https://github.com/Ferruscpp/Ndilemma/wiki/Rules
Email: ferrus.manus.cpp@proton.me
Medium: https://medium.com/@ferrus.manus.cpp

Note for non-C++ developers:

Even if you are not familiar with C++, the core logic of the tournament is based on simple mathematical strategies. You can describe your algorithm in the Discussions section, and someone from the community (or the maintainer) can help translate it into code!