Skip to content

[FEATURE] Offline 2 player on same device #24

@stevenfarless

Description

@stevenfarless

Feature summary

Add offline mode for local two-player gameplay on same device

Why is this feature important?

It will allow players to enjoy the game when internet connection is unavailable or unstable, provide a pass-and-play option for in-person play, and improve overall app reliability and user experience.

Possible implementation details

  • Detect when Firebase connection fails or is unavailable
  • Display option to "Play Offline (Pass & Play)" on home screen
  • Offline mode features:
    • Local two-player turn-based gameplay on same device
    • Players alternate turns manually (no network sync)
    • Keep same emoji selection UI (stored locally)
    • Track game state in localStorage or session storage
    • Display whose turn it is prominently
    • Same win detection and reset logic as online mode
    • No room codes needed
  • Add visual indicator showing "Offline Mode" or "Local Play"
  • Optional: Basic game history stored locally
  • Graceful degradation if online connection drops mid-game

I checked for duplicate requests

  • Yes, this is a new idea.

Additional context

This feature would improve accessibility and reliability. Especially useful for playing in areas with poor connectivity or when Firebase quota is exceeded. Could also serve as fallback during Firebase outages. Consider UX flow for switching between online and offline modes. Local storage could preserve settings like emoji preferences.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions