Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Donte Handy #623

Open
wants to merge 35 commits into
base: main
Choose a base branch
from
Open

Donte Handy #623

wants to merge 35 commits into from

Conversation

dontehandy
Copy link

No description provided.

@dontehandy
Copy link
Author

This pull request includes several changes to the Flash Cards project, focusing on adding functionality for generating and managing flashcards, as well as improving test coverage. The most important changes include the addition of new classes and methods for handling flashcards, updates to the README file, and the inclusion of comprehensive tests for the new functionality.

New functionality and classes:

  • flashcard_runner.rb: Added a script to run the flashcard game, including classes Card, Deck, and Round, and methods to handle game logic.
  • lib/card.rb: Introduced the Card class to represent individual flashcards.
  • lib/card_generator.rb: Added the CardGenerator class to read flashcards from a file and create Card objects.
  • lib/deck.rb: Implemented the Deck class to manage a collection of Card objects.
  • lib/round.rb: Created the Round class to handle the game rounds, including methods for taking turns and calculating scores.
  • lib/turn.rb: Added the Turn class to represent individual turns in the game.

Documentation updates:

  • README.md: Updated with detailed explanations and discussion points for the number_correct and percent_correct_by_category methods, as well as general project reflections.

Test coverage:

  • spec/card_generator_spec.rb: Added tests for the CardGenerator class to ensure it correctly reads and creates Card objects from a file.
  • spec/card_spec.rb: Enhanced tests for the Card class to verify its attributes and initialization.
  • spec/deck_spec.rb: Introduced tests for the Deck class to check card management and category filtering.
  • spec/round_spec.rb: Added comprehensive tests for the Round class to validate game logic and scoring.
  • spec/turn_spec.rb: Included tests for the Turn class to ensure correct guess handling and feedback.

These changes collectively enhance the functionality, documentation, and reliability of the Flash Cards project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant