vets-who-code-app
vets-who-code-app copied to clipboard
Add Who's branch is it anyway game page
Add a new page for the "Who's branch is it anyway" game.
-
New Page and Components
- Add
src/pages/whos-branch.tsx
to create a new page component for the game. - Add
src/components/whos-branch/index.tsx
to implement the game logic and UI. - Add
src/components/whos-branch/question.tsx
to display game questions. - Add
src/components/whos-branch/score.tsx
to display the game score.
- Add
-
Game Data
- Add
src/data/whos-branch.json
to store game data, including branches and questions.
- Add
-
Navigation and Menu
- Modify
src/pages/index.tsx
to add a link to the new game page. - Modify
src/data/menu.ts
to add a menu item for the new game page.
- Modify
-
Testing
- Add
__tests__/pages/whos-branch.tests.tsx
to create tests for the game page, game logic, and UI.
- Add
For more details, open the Copilot Workspace session.