Update process_description.md
This commit is contained in:
parent
a68f7c3f89
commit
2fea01fc86
1 changed files with 14 additions and 11 deletions
|
@ -18,7 +18,7 @@ wallet4,
|
|||
|
||||
- *Создание комнаты хостом*
|
||||
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet1.json -g gas_payment contractHash createRoom countRoundWinners countGameWinners wallet1Hash```
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet1.json -g gas_payment contractHash createRoom [ countRoundWinners countGameWinners ]```
|
||||
|
||||
##### Аргументы метода:
|
||||
|
||||
|
@ -27,7 +27,7 @@ wallet4,
|
|||
|
||||
- *Вход участников в комнату* (на примере игрока wallet2)
|
||||
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet2.json -g gas_payment contractHash joinRoom roomId wallet2Hash```
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet2.json -g gas_payment contractHash joinRoom [ roomId ]```
|
||||
|
||||
##### Аргументы метода:
|
||||
|
||||
|
@ -41,7 +41,7 @@ wallet4 joinRoom
|
|||
|
||||
- *Подтверждение готовности к игре участниками*
|
||||
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet2.json -g gas_payment contractHash confirmReadiness roomId wallet2Hash```
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet2.json -g gas_payment contractHash confirmReadiness [ roomId ]```
|
||||
|
||||
##### Аргументы метода:
|
||||
1. roomId - ID комнаты, которое заранее передано игроку вне данной системы
|
||||
|
@ -54,7 +54,7 @@ wallet4 confirmReadiness
|
|||
|
||||
- *Запуск игры хостом*
|
||||
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet1.json -g gas_payment contractHash startGame roomId wallet1Hash```
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet1.json -g gas_payment contractHash startGame [ roomId ]```
|
||||
|
||||
##### Аргументы метода:
|
||||
|
||||
|
@ -62,7 +62,7 @@ wallet4 confirmReadiness
|
|||
|
||||
- *Публикация вопроса текущего раунда*
|
||||
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet1.json -g gas_payment contractHash askQuestion roomId tokenId wallet1Hash```
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet1.json -g gas_payment contractHash askQuestion [ roomId tokenId ]```
|
||||
|
||||
##### Аргументы метода:
|
||||
1. roomId - ID созданной комнаты
|
||||
|
@ -70,7 +70,7 @@ wallet4 confirmReadiness
|
|||
|
||||
- *Отправка ответа на вопрос*
|
||||
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet2.json -g gas_payment contractHash sendAnswer roomid text wallet2Hash```
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet2.json -g gas_payment contractHash sendAnswer [ roomid text ]```
|
||||
|
||||
##### Аргументы метода:
|
||||
1. roomId - ID созданной комнаты
|
||||
|
@ -84,14 +84,14 @@ wallet4 sendAnswer
|
|||
|
||||
- *Завершение принятие ответов (раунда)*
|
||||
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet1.json -g gas_payment contractHash endQuestion roomid wallet1Hash```
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet1.json -g gas_payment contractHash endQuestion [ roomid ]```
|
||||
|
||||
##### Аргументы метода:
|
||||
1. roomId - ID созданной комнаты
|
||||
|
||||
- *Отдача голоса за лучший ответ*
|
||||
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet2.json -g gas_payment contractHash voteAnswer roomId answerIdx wallet2Hash```
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet2.json -g gas_payment contractHash voteAnswer [ roomId answerIdx ]```
|
||||
|
||||
##### Аргументы метода:
|
||||
1. roomId - ID созданной комнаты
|
||||
|
@ -105,7 +105,7 @@ wallet4 voteAnswer
|
|||
|
||||
- *Завершение раунда*
|
||||
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet1.json -g gas_payment contractHash getRoundWinner roomId wallet1Hash```
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet1.json -g gas_payment contractHash getRoundWinner [ roomId ]```
|
||||
|
||||
##### Аргументы метода:
|
||||
1. roomId - ID созданной комнаты
|
||||
|
@ -126,7 +126,7 @@ getRoundWinner..
|
|||
|
||||
- *Отдача голоса за завершение игры (без учета мнения хоста)*
|
||||
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet2.json -g gas_payment contractHash voteToFinishGame roomId wallet2Hash```
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet2.json -g gas_payment contractHash voteToFinishGame [ roomId ]```
|
||||
|
||||
##### Аргументы метода:
|
||||
1. roomId - ID созданной комнаты
|
||||
|
@ -139,7 +139,7 @@ wallet4 voteToFinishGame
|
|||
|
||||
- *Завершение игры*
|
||||
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet1.json -g gas_payment contractHash manuallyFinishGame roomId wallet1Hash```
|
||||
```$ ./bin/neo-go contract invokefunction -r http://localhost:30333 -w wallet1.json -g gas_payment contractHash manuallyFinishGame [ roomId ]```
|
||||
|
||||
##### Аргументы метода:
|
||||
1. roomId - ID созданной комнаты
|
||||
|
@ -165,6 +165,9 @@ wallet4 voteToFinishGame
|
|||
|
||||
```neo-go wallet nep11 transfer -r http://localhost:30333 -w /path/to/frostfs-aio/wallets/wallet1.json --from walletHash --to walletHash --token question --id contractId --await```
|
||||
|
||||
|
||||
- neo-go util convert - для конвертации типов
|
||||
|
||||
![Обобщенное описание процесса игры](https://git.frostfs.info/nastyxxaavs/web3_draft/src/branch/master/schemes/web3_activity_diagram.jpg)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue