-
Notifications
You must be signed in to change notification settings - Fork 5
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
🏷️ add player and round type #45
base: main
Are you sure you want to change the base?
Conversation
@@ -5,3 +5,12 @@ export type Player = { | |||
hands: Card[]; | |||
pastReceivedCards: Card[]; | |||
}; | |||
|
|||
export enum SelectedPlayerAction { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
還需要一個狀態叫做尚未選擇
selectedPlayer: Player; | ||
isGameEnd: boolean; | ||
hasBeenSelectedPlayer: Player[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這邊已經有選擇玩家了
爾且選擇玩家應該是 SelectedPlayer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我記得規則有不能傳給已經被傳過的玩家,所以想說需要 hasBeenSelectedPlayer 來紀錄已經被傳過的玩家,你覺得呢?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這地方只需要在player裏面加上收過的卡片即可
因為玩家如果收過該卡片則不能被選擇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
也就是post received card
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
喔喔我以為 postReceivedCard
是指玩家累積的明牌,那是否需要一個 type 是紀錄玩家累積的明牌? 我記得累積四種就算輸了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
他的type是Card 可以去看一下Card有沒有那些東西
Describe your changes
Issue ticket number and link
If not, please ignore
What is the scope of this change?
backend
frontend