tic tac toe ruleset

The tic-tac-toe ruleset is an implementation of a DIDComm protocol called Tic Tac Toe Protocol 1.0.

Implementing a protocol

Functions

getGames()

generate_tictactoe_move(id, thid, sender_order, me, moves, comment)

generate_tictactoe_outcome(thid, seqnum, winner, comment)

generate_problem_report(id, message)

send_move(id, move, me, comment)

start_game(did, move, me, comment)

receive_move(message, did)

send_problem_report(id, problem)

Rules

initialize

start_game

send_move

receive_move

send_outcome

receive_outcome

delete_game

send_problem_report

receive_problem_report

 

Copyright Picolabs | Licensed under Creative Commons.