How mobsaikouu/btime works
BTime is a browser-based speedcubing timer. Its principal workflow selects an event and generates a scramble, times a solve, saves the result, then presents history and statistics. The README documents browser UI, storage, workers, and PWA behavior, but those application source files are not in the supplied tree, so their paths are null. The Java TNoodle bridge, puzzle implementations, solver families, and SVG primitives are represented from the tree and source index; links not directly shown are documented only where the README establishes them.
Main entry points: puzzle Puzzle adapters · TNoodleBridge.java TNoodle bridge · Svg.java SVG drawing · sw.js Service worker
Components 22
Timer experience
- Timer controls
- Event selection
- Timer settings
Solve records
- History and actions
- Solve statistics
- Solve archive
- Preferences
Scramble generation
- Scramble panel
- Scramble worker
- TNoodle bridge
scripts/tnoodle/src/main/java/btime/TNoodleBridge.java - Puzzle adapters
scripts/tnoodle/src/main/java/org/worldcubeassociation/tnoodle/puzzle - Puzzle state and algorithms
scripts/tnoodle/src/main/java/org/worldcubeassociation/tnoodle/scrambles/Puzzle.java
Solver engines
- Cube search
scripts/tnoodle/src/main/java/cs/min2phase/Search.java - Square-1 search
scripts/tnoodle/src/main/java/cs/sq12phase/Search.java - Three-phase search
scripts/tnoodle/src/main/java/cs/threephase/Search.java - Puzzle-specific solvers
scripts/tnoodle/src/main/java/org/worldcubeassociation/tnoodle/puzzle
Scramble drawings
- SVG drawing
scripts/tnoodle/src/main/java/org/worldcubeassociation/tnoodle/svglite/Svg.java - SVG elements
scripts/tnoodle/src/main/java/org/worldcubeassociation/tnoodle/svglite/Element.java - SVG paths
scripts/tnoodle/src/main/java/org/worldcubeassociation/tnoodle/svglite/Path.java
Offline delivery
- Service worker
sw.js - Offline engine assets
Other components
- Cubers
Connections 24
- Cubers → Event selection: choose event
- Cubers → Timer controls: operate timer
- Cubers → Timer settings: configure
- Event selection → Scramble panel: selects scramble
- Scramble panel → Scramble worker: requests scramble
- Scramble worker → TNoodle bridge: uses engine
- TNoodle bridge → Puzzle adapters: dispatches events
scripts/tnoodle/src/main/java/btime/TNoodleBridge.java - Puzzle adapters → Puzzle state and algorithms: uses puzzle API
scripts/tnoodle/src/main/java/org/worldcubeassociation/tnoodle/scrambles/Puzzle.java - Puzzle adapters → Cube search: invokes search
- Puzzle adapters → Square-1 search: invokes search
- Puzzle adapters → Three-phase search: invokes search
- Puzzle adapters → Puzzle-specific solvers: uses solvers
- TNoodle bridge → Scramble panel: returns scramble
- Scramble panel → SVG drawing: shows drawing
- SVG drawing → SVG elements: builds SVG
scripts/tnoodle/src/main/java/org/worldcubeassociation/tnoodle/svglite/Element.java - SVG drawing → SVG paths: uses paths
scripts/tnoodle/src/main/java/org/worldcubeassociation/tnoodle/svglite/Path.java - Timer controls → History and actions: records solve
- History and actions → Solve archive: stores solves
- History and actions → Solve statistics: updates metrics
- History and actions → Preferences: saves scrambles
- Timer settings → Preferences: saves preferences
- Service worker → Offline engine assets: supports offline
- Scramble worker → Offline engine assets: loads locally
- Service worker → Solve archive: preserves data