View the Project on GitHub cse110-sp26-group08/one-arm-slot-machine-2
Team: SEVEN ATE NINE
These are commits where code was made by codex by somehow got updated on github that we commited them. These should be viewed as commits by codex
This report documents the complete development of One-Arm Slot Machine II, a fully-fledged pirate-themed slot machine website built using the MERN stack. The project successfully combined rigorous research, strategic AI-driven development, and user-centered design principles to create an engaging, accessible, and maintainable gaming platform.
Our team conducted comprehensive research across five key domains: frontend development best practices, backend architecture and security, user experience and psychological engagement mechanics, and AI-driven development strategy. Research focused on understanding slot machine design patterns, user retention psychology, sound design science, RTP economics, and security standards. This research informed all architectural and design decisions throughout the project.
For detailed research findings and team member contributions, see Research Overview
We developed two key personas to guide design decisions: Joy, a high school student seeking free entertainment and social competition through casual play sessions, and Joe, a venture capitalist investor focused on user retention, app store reputation, and engagement metrics. These personas shaped core features including free-to-play mechanics, vibrant UI design, responsive accessibility, and retention systems.
For detailed persona profiles and user stories, see:
We employed an AI-driven, parallelized development strategy: equipped Codex with Playwright browser automation, GitHub integration for PR creation, and detailed AGENTS.md specifications. Created well-specified GitHub issues for each feature, assigned multiple tasks simultaneously for parallel execution, and leveraged AI-generated pull requests with comprehensive documentation and testing. Used GPT-5.4 with medium reasoning for optimal balance between speed and accuracy.
Strategy Evolution:
Core Features:
Design Philosophy: Emphasize wins through sound + animation, minimize loss perception, strategically place near-misses for engagement, provide free daily tokens for non-paying players, and release regular content updates.
MERN Stack (MongoDB, Express.js, React, Node.js)
Selected for cohesion and team familiarity. Unified JavaScript ecosystem reduced context switching, MongoDB’s flexible schema accommodated evolving features, Express provided clean API routing, and React’s component modularity aligned perfectly with themed machine architecture. Backend implements authentication, game mechanics, and leaderboard services; frontend provides responsive components for gameplay and cosmetic purchases.
We employed a parallel AI-driven workflow: created well-specified GitHub issues, assigned multiple tasks to Codex simultaneously, and leveraged AI-generated pull requests with comprehensive documentation. Adhered to clean code principles including meaningful naming, single responsibility functions, DRY approach, comprehensive error handling, and JSDoc documentation.
Features Delivered:
Test Coverage
We implemented comprehensive test suites across backend and frontend:
Continuous Integration & Code Quality
GitHub Actions workflows enforce code quality on every push and pull request:
Both workflows use npm caching for fast feedback loops and standardized Node.js v22 environment. These automated quality gates ensure consistent code standards, prevent regressions, and maintain the long-term maintainability of the codebase.

Psychological Engagement: Volatility balance (frequent small wins + rare big payouts), strategically placed near-misses, audio reinforcement, quick loss transitions, delayed reel stopping for tension.
Retention Mechanics: Daily streaks with cumulative benefits, progressive unlocks at milestones, cosmetic rewards for achievement, social leaderboards, regular content updates.
Accessibility & Inclusivity: Responsive design, semantic HTML, screen reader support, high contrast, keyboard navigation, mobile-first approach.
Project Completion:
AI-Driven Development: Parallel task execution dramatically reduced development time; detailed specifications (AGENTS.md, issue templates) were critical for agent effectiveness; Playwright automation enabled continuous visual verification.
Technology Stack: Unified JavaScript eliminated integration friction; MongoDB’s flexibility accommodated evolving requirements; React’s component modularity aligned perfectly with themed architecture; API-first backend enabled parallel development.
Game Design: Psychology-informed mechanics (RTP, near-misses, sound) measurably impact engagement; volatility balance directly affects retention; accessibility opens markets to time-constrained players; social features significantly enhance engagement.
Short-term: Progressive levels, weekly challenges, advanced cosmetic shop, friend gifting, mobile app
Medium-term: Tournament modes, seasonal content, player profiles, guild systems, analytics dashboard
Long-term: VIP tiers, dynamic RTP, procedural generation, cross-platform sync, community features
One-Arm Slot Machine II successfully synthesizes rigorous research, user-centered design, and modern development practices into a fully-featured gaming platform. By combining psychological principles with accessible gameplay, we created a product serving entertainment-seeking players while maintaining sustainable engagement metrics for stakeholders.
The project validates the efficacy of evidence-based game design, persona-driven development, parallel AI-driven workflows, clean code practices, and inclusive design principles. This foundation positions the platform for successful scaling and feature expansion as the player base grows.