abcbdf / castle_game

A two person game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

castle_game

Use c++ to simulate multiple rounds of competition between each strategy.

First initialize each strategy, which total size about six million is still tolerable.

Second, let the strategy to cambat with each other and calculate their average score. Rank the scores from large to small and eliminate the worse half strategies. During the early rounds, the total size is too big for a one-cycle match. so I let each strategy to combat with a few random strategies.

Finally, I output the top ten strategies for each round. The result is in result.txt.

About

A two person game.


Languages

Language:C++ 100.0%