dreignier / cg-brutaltester

A local arena for codingame multiplayer puzzles
GNU General Public License v3.0
211 stars 47 forks source link

Seed argument also trigger players swap #42

Open royerk opened 1 year ago

royerk commented 1 year ago

Hello, weird double number of games when setting the initial seed.

Steps to reproduce:

The do_nothing_bot.py:

width, height = [int(i) for i in input().split()]

while True:
    my_matter, opp_matter = [int(i) for i in input().split()]
    for row in range(height):
        for col in range(width):
            (
                scrap_amount,
                owner,
                units,
                recycler,
                can_build,
                can_spawn,
                in_range_of_recycler,
            ) = [int(k) for k in input().split()]

    print("WAIT")

Adding -i 0 to set the seed for consistent testing also double the number of games as if the -s arg was present. This double the testing time for no reason. Failed games, for a timeout, show a command to reproduce the failed game that contains -s in it (don't know if that helps).

Cheers

marktellez commented 1 year ago

Si así