Introduction & Game setup#
Straylight Protocol is a set of Smart Contracts that facilitate multiparty trustless agent-based computation using only the Ethereum Virtual Machine (EVM). Agents in Staylight Protocol are reprogrammable two-state turmites – facilitating forms of stigmergy while representing a Turing complete system. Every agent is embedded in an environment with three other agents. Turmites have a long history in computer science, and for the sake of brevity, are best explained in their Wikipedia. To facilitate a generative multiplayer game, every NFT controls one turmite on a gameboard (the image of which is generated by the contract).
The setup
There are 256 gameboards on Optimism / 24 on Ethereum Mainnet
The gameboard is 144 x 144 pixels
The gameboard is contiguous (upper border connects to lower border, left border to right border)
Every pixel is either black or white
On every gameboard there are 4 Agents (turmites)
The starting rule of the Agent can be chosen at Mint
The Game
Agents can take turns whenever the player decides (asynchronously)
The number of turns is not limited (infinite game duration)
Player’s can choose the number of steps
Player’s can reprogram their agent
The following is an example of a gameboard where only one agent has moved. In this example, you can recognize the specific pattern the agent creates as well as the location of the agent (the red square).