SShortSingh.
Back to feed

Developer Rebuilds Browser-Based Tamagotchi in TypeScript, Gains Lessons in State Machines

0
·1 views

A developer has recreated the classic 1990s Tamagotchi virtual pet as a browser-based app using TypeScript, with no dependencies, downloads, or app store required. The project replicates the original gameplay loop where a pixelated creature hatches from an egg and has four core needs — hunger, happiness, energy, and hygiene — that decay in real time every few seconds. A periodic game tick function drives state transitions and mood changes, while player actions like feeding, playing, and sleeping produce complex emergent behavior from simple inputs. The developer says building the project provided deeper practical insight into state machine architecture than conventional tutorials, which typically rely on simpler examples like traffic lights. The project was shared as open source and drew strong nostalgic reactions, with the developer noting that emotional resonance, not technical novelty, drove its reception.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

How Agentic AI Layers Using LangGraph and MCP Can Strengthen CI/CD Security

Traditional CI/CD pipelines excel at automating builds, tests, and deployments but lack the contextual reasoning needed to assess whether a change is truly safe to deploy. Risky operations like unguarded SQL deletions or removed authorization middleware can slip through when no explicit rule exists to catch them. A proposed hybrid architecture addresses this gap by placing a stateful AI reasoning layer — built with tools like LangGraph, MCP, and A2A — above conventional deterministic scanners such as SQLFluff, CodeQL, and Semgrep. This agentic layer collects evidence from specialized tools and evaluates deployment changes from multiple perspectives before producing an auditable decision. The approach is designed to complement, not replace, existing CI/CD security controls, following guidance from NIST and OWASP on integrating security throughout the software development lifecycle.

0
ProgrammingHacker News ·

Study finds Kimi AI responses closely mirror Claude using cross-entropy analysis

A research analysis comparing large language model outputs has found that Kimi, an AI assistant, produces responses strikingly similar to Anthropic's Claude. The comparison was conducted using cross-entropy, a statistical method that measures the difference between probability distributions of text outputs. The findings were shared on Hacker News, where the post gathered modest engagement with 13 points and 3 comments. The similarity raises questions about potential training data overlap or architectural influences between the two models. No official response from the developers of either model has been reported in connection with this analysis.

0
ProgrammingDEV Community ·

Fluctara Platform Aims to Adapt Audio Entrainment in Real Time Using EEG Feedback

Fluctara is a newly described audio entrainment platform designed to move beyond static binaural beat tracks by dynamically adjusting audio signals based on a user's physiological state. The system uses a 16-layer coupled-oscillator mathematical framework called the Self-Consistent Phenomenological Network to generate binaural, isochronic, and spatial audio computationally rather than from prerecorded loops. When connected to EEG or heart-rate sensors, the platform operates as a closed-loop system, processing real-time physiological data to modify session parameters for each individual. A core feature called the Entrainment Verification Score attempts to measure how closely a user's recorded brainwave activity correlates with the intended target frequency, going beyond simply logging listening time. The platform is positioned as a tool for researchers, developers, and wellness or human-performance organisations seeking a programmable, verifiable signal-generation system.

Developer Rebuilds Browser-Based Tamagotchi in TypeScript, Gains Lessons in State Machines · ShortSingh