/
tic tac toe ruleset
tic tac toe ruleset
The tic-tac-toe ruleset is an implementation of a DIDComm protocol called Tic Tac Toe Protocol 1.0.
- 1 Implementing a protocol
- 2 Functions
- 2.1 getGames()
- 2.2 generate_tictactoe_move(id, thid, sender_order, me, moves, comment)
- 2.3 generate_tictactoe_outcome(thid, seqnum, winner, comment)
- 2.4 generate_problem_report(id, message)
- 2.5 send_move(id, move, me, comment)
- 2.6 start_game(did, move, me, comment)
- 2.7 receive_move(message, did)
- 2.8 send_problem_report(id, problem)
- 3 Rules
- 3.1 initialize
- 3.2 start_game
- 3.3 send_move
- 3.4 receive_move
- 3.5 send_outcome
- 3.6 receive_outcome
- 3.7 delete_game
- 3.8 send_problem_report
- 3.9 receive_problem_report
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
Related content
dido ruleset
dido ruleset
More like this
future plans
future plans
Read with this
Rulesets API
Rulesets API
More like this
dido library
dido library
Read with this
Copyright Picolabs | Licensed under Creative Commons.