How lavenir7/jev2048 works
Jev2048 is a browser-based two-sided 2048 match: each side can be played manually or controlled by Jev, with synchronized stepping and an automatic race mode. The browser manages controls, board presentation, and move progression; shared rules support both the UI and server-side candidate evaluation. For Jev turns, the server validates the board, prepares deterministic candidate features, obtains model judgements, combines them into a move, and returns decision and usage details. README documents status and model-list endpoints as well. The UI excerpt is partial, so unshown request and orchestration details are represented only where the server or documentation supports them.
Main entry points: index.js HTTP API · jev.js Move evaluation · app.js Match and boards · engine.js 2048 rules
Components 8
Browser game
- Browser UI
public/index.html - Match and boards
public/app.js
Server API
- HTTP API
server/index.js
Jev decision
- Move evaluation
server/jev.js
Other components
- Player
- 2048 rules
shared/engine.js - TypeSafe service
- Model catalogue
Connections 12
- Player → Browser UI: uses
- Browser UI → Match and boards: hosts UI
- Match and boards → 2048 rules: applies rules
- Match and boards → HTTP API: requests status, models, moves
- HTTP API → 2048 rules: validates board
- HTTP API → Move evaluation: requests decision
- Move evaluation → 2048 rules: computes candidates
- Move evaluation → TypeSafe service: requests judgement
- Move evaluation → Model catalogue: lists models
- HTTP API → Match and boards: returns API data
- TypeSafe service → Move evaluation: returns judgement
- Model catalogue → HTTP API: returns model list