- This is a node application that renders all possible games of Tic Tac Toe as static HTML pages, as well as a node application that renders animated gifs for all possible games.
- For every move, you can see the odds of the outcomes (based on random play).
- At the end of each game, you can see an animated gif that shows the game as a replay.
GitHub actions are setup to run the node applications that render all the pages and images. The result is then uploaded to a Azure storage account that acts as a static website.
I wanted to see how far I could take this and have a little fun with the technology (Node, GitHub actions, Azure, ...). You can see the result here: https://robinhstorage.z6.web.core.windows.net/
Just fork the repo and add the following secrets to the configuration:
- DEST_BASE_URL - Destination url to the Azure Blob storage. E.g.:
https://yourstorageaccountname.blob.core.windows.net/$web
- SAS_TOKEN - Shared access signature token for the storage account. More info: https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview#sas-token. Please check that it starts with
?sv=
and ends with a weird set of characters.
Sure. Just run node ./renderHtml.js
and node ./renderGifs.js
. Or use the Docker setup by running docker-compose up --build
(runs a nginx webserver with the result). Please note that it will take very long to run these applications.