Stypox / beggar-my-neighbour

This program looks for an infinite game of the completely random card game "Beggar My Neighbour". https://en.wikipedia.org/wiki/Beggar-my-neighbour

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project contains an algorithm that, given the cards of two players, calculates how many rounds it took a player to win the game. Basically, the algorithm simulates a two-players Beggar-My-Neighbour game.
I want to find an infinite game: this happens when, after some rounds, the deck of both players is equal to the one they had at the start. But since there are ~10^20 possible games, I can't test all of them, so I want to use evolution to get longer games and maybe find an infinite one

The file management library I use

About

This program looks for an infinite game of the completely random card game "Beggar My Neighbour". https://en.wikipedia.org/wiki/Beggar-my-neighbour


Languages

Language:C++ 99.8%Language:C 0.2%