Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Support transferring and cloning of agents between models

Abierto
#69 6 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
scala
Área
tooling

Línea de trabajo

No se nombran archivos, tests ni puntos de entrada. Empieza por localizar el código existente de transferencia de model, turtle, breed y link, junto con los tests relacionados, y después aclara la semántica de move/clone y el comportamiento de los links no resueltos. La tarea estará completa cuando los comandos de transferencia compatibles y las reglas de compatibilidad estén implementados, con tests para variables coincidentes, shapes, posiciones y bloques de inicialización.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Turtles:

  • ls:move <source-model> <reporter-of-turtle/turtleset> <target-mode> <optional-initialization-block>
  • Can transfer/clone (kill in one, create in another) between models with the same turtle/breed variable names. That is, can copy if:
    • Does a breed with the same name as the turtle's breed exist in the target model?
    • Take all the names of the turtle's turtle and breed vars. Do variables with the same names exist in the target model?
    • Does the turtle's shape exist in the target model? (we could just default shape if not)
    • If yes to these questions, can transfer.
  • Variables are matched up by name, except for position
  • Position is tough since the worlds will have different dimensions, and even if they have the same dimensions, it's unlikely that the user will want the turtle's position to be preserved. Right now, I think the turtle should just appear at 0,0, and there should be an optional command block that it runs upon creation that receives xcor as ?1 and ycor as ?2.

Patches:

  • Clone only

Links:

  • Not sure
Lenguaje dominante
Scala
Estrellas
20
Forks
8
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NetLogo/LevelSpace

Todos los issues de NetLogo/LevelSpace

Issues similares

Más issues de Scala

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.