Apex-Symmetry is a high-fidelity implementation of the classic "Snake-Water-Gun" decision-making game. It is designed to showcase the intersection of competitive logic and modern UI/UX principles, providing a seamless, state-persistent gaming experience in the browser.
The application utilizes a Circular Predicate Logic system:
- Normalization: User input is intercepted and normalized to a strict uppercase schema (
S,W,G). - RNG Simulation: The CPU move is determined via a Pseudo-Random Number Generator (PRNG) mapped to a discrete choice array.
- Conflict Resolution: A conditional matrix determines the outcome:
- (S > W), (W > G), (G > S)
- State Management: Real-time scoring variables (
userScoreCount,cpuScoreCount) are updated in memory and instantly synchronized with the DOM.
This project acts as a "Proof of Work" for essential Full-Stack concepts:
- Input Validation: Implementing strict guard clauses to prevent invalid data entry.
- Advanced CSS Architecture: Using mobile-first media queries, custom focus states, and the
-webkit-fill-availableproperty for cross-browser stability. - Event Orchestration: Synchronizing
click,keydown, andwindow.onloadevents for a zero-friction user journey. - Visual Feedback Systems: Dynamic color shifting of DOM elements based on logic outcomes (Win/Loss/Tie).