feat: Implement network battle and practice modes with question generation
- Added `questionGenerator.ts` for dynamic question generation based on difficulty levels. - Created `NetworkBattle.vue` for real-time multiplayer gameplay using PeerJS. - Developed `Practice.vue` for single-player practice sessions with score tracking and history. - Updated `yarn.lock` to include new dependencies for PeerJS and message packing. - Enhanced UI with responsive design and feedback animations for user interactions.
This commit is contained in:
parent
90b3876ea3
commit
6e9c0fef54
9 changed files with 1413 additions and 1 deletions
|
|
@ -17,6 +17,16 @@ const router = createRouter({
|
|||
// which is lazy-loaded when the route is visited.
|
||||
component: () => import('../views/AboutView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/practice',
|
||||
name: 'Practice',
|
||||
component: () => import('../views/Practice.vue'),
|
||||
},
|
||||
{
|
||||
path: '/network-battle',
|
||||
name: 'NetworkBattle',
|
||||
component: () => import('../views/NetworkBattle.vue'),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue