skotz / volcanoes

Prototype for a new board game
4 stars 1 forks source link

Give tournament time length estimate to help users pick useful settings #54

Open simondorfman opened 3 years ago

simondorfman commented 3 years ago

image

Add two information boxes to the tournament screen:

  1. the total number of games that will be played in a tournament, given the tournament settings currently selected. In the example screenshot above, this number would be 7500.
  2. an estimate of how long the tournament will take with some explanations for the calculation. Something like this: "Assuming each AI uses the full time allowed each turn, and the average length of each game is 17 turns (excluding growth turns), the tournament will end in 1.05 weeks."

This formula seems very wrong at predicting actual tournament times, but something along these lines: (7500 games 17 turns 5 seconds) = 637500 seconds (simplified to a most useful time unit of weeks in this case)

simondorfman commented 3 years ago

On this old iMac, the above settings take about 9 hours, 49 minutes. I'll try a couple of other timings to help come up with a useful estimation.

skotz commented 3 years ago

Also just remembered that multiple games run in parallel, so you'd have to consider number of cores on the machine.

On Sun, Nov 29, 2020, 10:31 AM Simon Dorfman notifications@github.com wrote:

On this old iMac, the above settings take about 9 hours, 49 minutes. I'll try a couple of other timings to help come up with a useful estimation.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/skotz/volcanoes/issues/54#issuecomment-735420375, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXRNXXVVFZROKAMJWEUKCDSSJZOVANCNFSM4UDBSLCQ .

simondorfman commented 3 years ago

Ah that makes sense, this iMac has a 3.4GHz quad-core Intel Core i7.

simondorfman commented 3 years ago

With 10 seconds per move (instead of 5), this took about 20 hours, 26 minutes.