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

feat(client): add createProject move #50

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

kuoabu
Copy link
Collaborator

@kuoabu kuoabu commented Jul 21, 2022

Major

  • add createProject move

Minor

  • import Redux + Redux Toolkit for UI state management
  • define actionBoardSlice to save the movements on a player's turn
  • add createProject move
    • select a project card on the hand
    • select a active job card on the table
    • sync with server

Sepc

ActionBoard.type.ts

export type MoveType = keyof Type.Move.AllMoves;

export enum MoveStatus {
  'editing',
  'submitted',
}

export interface Move {
  move: MoveType;
  status: MoveStatus;
  selections: {
    tableProject: boolean[];
    tableJobs: boolean[];
    handProjects: boolean[];
    handForces: boolean[];
  };
}

@kuoabu kuoabu force-pushed the feature/game-player-board-ui-2 branch from 41e2953 to 9ea511a Compare August 31, 2022 15:03
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

Successfully merging this pull request may close these issues.

1 participant