Add process_description markdownn file

This commit is contained in:
Anastasia Avsyukevich 2025-01-17 20:33:43 +00:00
parent efb3992a26
commit be3fec1791

47
process_description.md Normal file
View file

@ -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 <int> --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)