{ Mark } ;

Memory Game: Matching Pair

February 9, 2026 by Mark-Luigi

Live Site: https://matchingpair.markluigibatoctoy.com

What I Learned

Building this Matching Pair game helped me strengthen my full-stack development skills using ReactJS, Next.js, and Laravel. I learned how to structure a game-based application with a clear lifecycle—from session creation to gameplay and final result handling.

On the frontend, I improved my understanding of state management, component re-rendering, and game logic handling in React. Managing flipped cards, preventing invalid clicks, tracking moves, and detecting win conditions required careful control of state and timing.

On the backend, I reinforced best practices in API design and session management using Laravel. Creating clean endpoints for session creation and game result storage made the application more structured and scalable.

This project helped me think more architecturally—separating UI logic, business logic, and persistence properly.

What I Worked On

Session Creation

Game Logic (React / Next.js)

Game Over / Result Page

Key Takeaways