Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[frontend] 玩家出牌/抽牌 #25

Open
9 tasks
ShadowSunCat opened this issue Jul 25, 2023 · 0 comments
Open
9 tasks

[frontend] 玩家出牌/抽牌 #25

ShadowSunCat opened this issue Jul 25, 2023 · 0 comments

Comments

@ShadowSunCat
Copy link
Collaborator

ShadowSunCat commented Jul 25, 2023

A.C.

  • 玩家從牌庫抽牌的動作,需介接 api - /action/draw
  • 收到抽牌成功的 response,需彈出一個對話框,提示要留下這張牌,還是要打出去。
  • 玩家選擇留下這張牌,需表演將抽到的牌放到自己的手牌中。
  • 玩家選擇打出這張牌,需介接 api - /action/play
  • 需有單元測試保護
    • 呼叫 /action/draw api 的邏輯
    • 呼叫 /action/play api 的邏輯
    • 對話框會在抽牌後自動彈出
    • 選擇留下這張牌,有表演放到自己手牌。
    • 選擇打出這張牌,有正確呼叫 play api。

線框圖 (參考)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant