From be3fec17911cc8d1044467db4bfc1f1709cafc73 Mon Sep 17 00:00:00 2001 From: nastyxxaavs Date: Fri, 17 Jan 2025 20:33:43 +0000 Subject: [PATCH] Add process_description markdownn file --- process_description.md | 47 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 process_description.md diff --git a/process_description.md b/process_description.md new file mode 100644 index 0000000..b110e43 --- /dev/null +++ b/process_description.md @@ -0,0 +1,47 @@ +## Описание функций, используемых в игре: +wallet1 - создает комнату +wallet2 +wallet3 +wallet4 - игроки + +contract compile +contract deploy (получаем contractid) + + + +invokeFunction wallet1.json contractid createRoom (аргументы хз) --wallet1 +invokeFunction wallet2.json contractid joinRoom roomid --wallet2 +wallet3 join +wallet4 join +invokeFunction wallet1.json contractid startGame roomid --wallet1 +invokeFunction wallet1.json contractid setQuestion roomid (string) --wallet1 +invokeFunction wallet1.json contractid startQuestion roomid --wallet1 +invokeFunction wallet2.json contractid sendAnswer roomid (string) --wallet2 +wallet3 sendAnswer +wallet4 sendAnswer +invokeFunction wallet1.json contractid endQuestion roomid --wallet1 +invokeFunction wallet2.json contractid chooseAnswer roomid --wallet2 +wallet3 chooseAnswer +wallet4 chooseAnswer +invokeFunction wallet1.json contractid getWinner roomid --wallet1 + +повторяется игровой цикл +setQuestion +startQuestion +sendAnswers.. +endQuestion +chooseAnswers.. +getWinner + +invokeFunction wallet1.json contractid endGame roomid --wallet1 + +### Описание основных действующих лиц и их действий: +![](https://git.frostfs.info/nastyxxaavs/web3_draft/src/branch/master/schemes/web3.0.jpg) +![](https://git.frostfs.info/nastyxxaavs/web3_draft/src/branch/master/schemes/web3.1.jpg) +![](https://git.frostfs.info/nastyxxaavs/web3_draft/src/branch/master/schemes/web3.2.jpg) +![](https://git.frostfs.info/nastyxxaavs/web3_draft/src/branch/master/schemes/web3.3.jpg) + + + + +