added specctator feature where other can. view 2 people playing #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Spectator Mode Feature
Summary
This PR adds a new spectator mode feature that allows users to view and watch all tic-tac-toe games on the platform without needing to connect a wallet. This improves accessibility and enables users to browse ongoing and completed games before deciding to participate.
Motivation
Currently, users need to connect their Stacks wallet to view any games on the platform. This creates a barrier for new users who want to:
Changes Made
New Features
/spectate): A dedicated page to view all games without wallet connectionFiles Added
frontend/app/spectate/page.tsx- New spectate page component with server-side renderingFiles Modified
frontend/README.md- Updated documentation with:frontend/lib/contract.ts- Updated contract address to deployed testnet addressdeployments/default.testnet-plan.yaml- Updated with actual deployment addressConfiguration
settings/Testnet.toml- Configured for testnet deployment (not committed, in.gitignore)Technical Details
Implementation Highlights
export const dynamic = "force-dynamic"for real-time game dataGameBoard,getAllGames(), and utility functionsComponent Architecture