corewar / corewar.io

Corewar.io monorepo
49 stars 12 forks source link

Produce animated gifs from Corewar games #41

Open gareththegeek opened 6 years ago

gareththegeek commented 6 years ago

We could add a feature to produce animated gifs from Corewar games. This would allow people to embed Corewar games into web sites/posts etc.

I suppose they could also provide a replay of games running on the hills although I'm sure about this because traditionally, battles on the hills happen behind closed doors so that the players do not know what strategies the other warriors on the hill are using beyond what is published in the warriors ;strategy tag

dougajmcdonald commented 6 years ago

Interesting, would you envisage taking a screenshot per simulator step?

gareththegeek commented 6 years ago

It might be necessary to take a snapshot every x steps - but yeah!

dougajmcdonald commented 6 years ago

I can see a sensible way to create an image per end of round now we can do that quickly. Unsure how to create a gif on the fly but can't be hard