Interactive Pattern Repetition Game Design Utilizing Real-Time Hardware Pseudo-Random Number Generator

Tee Hui Teo, Hui Tee Teo, Qistina Binte Mohd Sahril, Wei Rui Ho, Si Yuan Lai, Samuel Chun Yang Lim, Maoyang Xiang · 2025

This paper presents the design and implementation of a hardware-based memory game developed on an FPGA platform to promote cognitive stimulation among older adults. The game features a 3×3 LED and switch matrix that displays pseudo-random light patterns that users must recall and replicate. To enhance randomness, a seed is extracted from ambient electromagnetic noise using an Analog-to-Digital (ADC) and fed into a multi-Linear Feedback Shift Register (LFSR) pseudo-random number generator (PRNG). The PRNG employs XOR-combined LFSRs initialized with nonoverlapping seed transformations to ensure statistical independence. A finite state machine (FSM) governs the game logic, translating 9-bit PRNG outputs into spatial LED patterns and evaluating user input for correctness. Statistical analyses of PRNG outputs, using normality tests and Central Limit Theorem-based smoothing, verify the Gaussian conformity and entropy quality of generated sequences. The fully integrated system includes custom PCBs for ADC input, a mechanical button interface, and an LED display, housed in a 3D-printed enclosure. Results from both simulation and hardware validation confirm the system's effectiveness in generating high-quality randomness and delivering a simple, tactile, and accessible cognitive exercise platform.

Read the paper · More papers on PaperTik