I am building a state channel battleship game. I have a stateless contract which contains all my gameplay logic and another statechannels contract which contains all the dispute logic.
Ideally, I shouldn't be deploying either contract until there is a dispute.
To move through the game states, my contract accepts a
AppState argument and applies the passed
Action argument to return a new state. All my functions are pure.
Is there any way to run the contract code without deploying it on any chain?