Skip to content

Conversation

@Felipecardosovargas
Copy link

Description

This PR improves the Hangman game as requested in issue #88.
It adds word categories with difficulty levels, a scoring system, colorful console output, input validation, display of guessed letters, and a replay feature.

Type of Change

  • New feature
  • Bug fix
  • Documentation
  • Code refactoring
  • Testing

Changes Made

  • Added WORD_CATEGORIES dictionary with multiple categories and difficulty levels
  • Implemented make_guess function and scoring system
  • Enhanced play_game with colored output, input validation, guessed letters display, and replay option
  • Separated code into modular files: main.py, game.py, words.py, hangman_pics.py

Testing

  • Tested multiple games with different categories and difficulties
  • Verified scoring system and letter validation
  • Checked replay functionality

Screenshots (if applicable)

N/A (console-based game)

Checklist

  • My code follows the style guidelines
  • I have tested my code
  • I have added documentation where necessary
  • My changes generate no new warnings
  • I have added tests (if applicable)

Related Issues

Closes #88

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.

improve the Hangman game

1 participant