Para evaluar tu código e identificar posibles mejoras debes instalar y utilizar las siguientes herramientas:
- The game consists of 10 frames as shown above. In each frame the player has two opportunities to knock down 10 pins. The score for the frame is the total number of pins knocked down, plus bonuses for strikes and spares.
- A spare is when the player knocks down all 10 pins in two tries. The bonus for that frame is the number of pins knocked down by the next roll. So in frame 3 above, the score is 10 (the total number knocked down) plus a bonus of 5 (the number of pins knocked down on the next roll.)
- A strike is when the player knocks down all 10 pins on his first try. The bonus for that frame is the value of the next two balls rolled.
- In the tenth frame a player who rolls a spare or strike is allowed to roll the extra balls to complete the frame. However no more than three balls can be rolled in tenth frame.
- Calidad
- Utilizar estilo de código definido por la comunidad (apoyarse en Rubocop)
- Pruebas unitarias (TDD)
- Puntuación en Rubycritic por lo menos 85 en la carpeta de la App y por lo menos 65 en las pruebas
- Utilizar SandiMeter para analizar el código y utilizar el resultado para hacer mejoras
- Ejecución
- Puede ejecutarse desde la linea de comandos y mostrar la salida en consola
- Código fuente
- Orientado a Objetos
- Métodos Pequeños
- Aplicar los principios SOLID
- Otros
- Incluir en el repositorio el SmallBadge con la puntuación obtenida por RubyCritic
- Incluir en el repositorio el reporte HTML que genera SandiMeter
- Los commits de Git deben ser atómicos y significativos
- Lenguaje de programación Ruby
- Framework para pruebas Rspec ó Minitest
- Rubocop, RubyCritic y SandiMeter para calidad de código
- Línea de comando
- Código fuente en Github