Octez_smart_rollup_node.Refutation_playerWorker module for a single refutation game player. The node's refutation coordinator will spawn a new refutation player for each refutation game.
val init_and_play :
_ Node_context.rw_context ->
self:Tezos_crypto.Signature.public_key_hash ->
conflict:Octez_smart_rollup.Game.conflict ->
game:Octez_smart_rollup.Game.t option ->
level:int32 ->
unit Tezos_base.TzPervasives.tzresult Lwt.tinit_and_play node_ctxt ~self ~conflict ~game ~level initializes a new refutation game player for signer self. After initizialization, the worker will play the next move depending on the game state. If no game is passed, the worker will play the opening move for conflict.
val play :
Tezos_crypto.Signature.public_key_hash ->
Octez_smart_rollup.Game.t ->
level:int32 ->
unit Lwt.tplay opponent game ~level makes the worker for the game against opponent play the next move depending on the game state for their conflict.
val shutdown : Tezos_crypto.Signature.public_key_hash -> unit Lwt.tShutdown a refutation game player against a given opponent.
val current_games : unit -> Tezos_crypto.Signature.public_key_hash listcurrent_games () lists the opponents' this node is playing refutation games against.