L26.P2: rework practice to be about a case where we actually load strings that need conversion to int
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 56/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- godot
Línea de trabajo
Start by locating the L26.P2 practice and the related issues #1416 and #1425. Review how the current spin box supplies values and how the lesson handles shop item data; then shape the practice around a dictionary loaded from CSV, with a string price to convert to an integer. Done means the exercise presents that realistic conversion task and its expected result.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
This issue follows and will eventually encompass #1416 and #1425
So, while it's absolutely possible to patch the practice to address the mentioned bugs, a problem remains that, unlike what we say in the practice, the spin box gives us a float and you can directly assign a float to a variable expecting an int in GDScript. So, you don't really need to do a type conversion in practice here, but also, this is not a real case where we would read a string from the user interface.
Instead, a relevant case that still relates to the idea of a shop we have in this lesson is something like designers writing spreadsheets where they put the item data that we load into the game, but because it comes from a spreadsheet, it's all text that we need to parse and convert to integer where relevant. So an idea is to give people a dictionary representing data loaded from a CSV file where the user needs to convert a string value representing the price into an int
- Lenguaje dominante
- GDScript
- Estrellas
- 2.8k
- Forks
- 237
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 GDQuest/learn-gdscript
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
GDQuest/learn-gdscript#1446 ·
-
user experience
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
GDQuest/learn-gdscript#1438 ·
-
user experience
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
GDQuest/learn-gdscript#1420 ·
-
Dificultad 3/5 Medio día Aptitud para principiantes 50/100
GDQuest/learn-gdscript#1445 ·
-
bug
Dificultad 3/5 1-3 horas Aptitud para principiantes 52/100
GDQuest/learn-gdscript#1444 · 1 comentario ·