[Physarum] Add CLI flags for size, particles, iterations, count, seed and output dir
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 57/100
Línea de trabajo
Start with Math_Chaos/Physarum/cmd/physarum/main.go and Math_Chaos/Physarum/pkg/physarum/run.go, tracing how the current constants and random seed reach physarum.Run. Add command line options and pass them through a RunOptions struct; check that fixed seeds reproduce output and -count exits after the requested images. The issue names no test files, so use short runs with small settings to verify the acceptance criteria.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
cmd/physarum has no options: size, particle count, iterations, blur and zoom are compile-time constants, it never stops, and the "frames" (animation) mode is behind if false {}. A short test run or a reproducible image needs code edits.
Location
Math_Chaos/Physarum/pkg/physarum/run.go:10-18(constants),:61-83(if falseand infinite loop)Math_Chaos/Physarum/cmd/physarum/main.go:17(rand.Seed(time.Now()...))
Evidence
62: if false {
...
72: for {
A default run did not finish its first image in 150 s on 4 cores.
Expected
physarum -w 512 -h 512 -particles 1e6 -iters 200 -n 3 -seed 42 -out ./out -frames style usage.
Proposed fix
Add flag parsing in cmd/physarum, pass a RunOptions struct into physarum.Run, support a fixed seed (one *rand.Rand threaded through), -count N images then exit, and -frames rate for the animation mode.
Acceptance criteria
- All constants overridable by flags with the current values as defaults
-
-seedgives identical output for identical flags - Process exits after
-countimages
Repository audit, November 2026 · Phase 9 · New features · evidence: reproduced · ref chaos-managed-031
Generated by Claude Code
- Lenguaje dominante
- C++
- Estrellas
- 2
- Forks
- 1
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ibra-kdbra/Math-Problems
-
area: security-algorithms priority: P1 size: XS type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
ibra-kdbra/Math-Problems#417 ·
-
area: math-chaos priority: P3 size: S type: enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ibra-kdbra/Math-Problems#397 ·
-
area: docs-site good first issue priority: P3 size: XS type: chore
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ibra-kdbra/Math-Problems#379 ·
-
area: docs-site good first issue priority: P3 size: XS type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
ibra-kdbra/Math-Problems#378 ·
-
area: docs-site good first issue priority: P2 size: XS type: chore
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ibra-kdbra/Math-Problems#367 ·
Todos los issues de ibra-kdbra/Math-Problems
Issues similares
-
TransformInteract: a circle drag through the centre sets Scale to its minimum, which can't grow backAbiertodifficulty:easy prio:low type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
NatronGitHub/openfx-supportext#311 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
CachyOS/packageinstaller#211 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
OpenEmu-Silicon/OpenEmu-Silicon#920 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100