Skip to content

Conversation

@jlahtinen
Copy link

This pull request introduces a comprehensive setup and implementation for a Hangperson (Hangman) Java console application. It includes detailed instructions for creating the project, configuring Maven, and leveraging GitHub Copilot for incremental development. The changes also include a complete solution with the game logic, tests, and supporting documentation.

Documentation and Setup Improvements:

  • Added a detailed README.md file in challenges/hangperson with step-by-step instructions for setting up the Hangperson application using Maven and GitHub Copilot. It covers project creation, dependency configuration, and initial implementation guidance.
  • Included a wordet.md file documenting the use of WordNet for word resources, along with its licensing details.

Game Implementation:

  • Implemented the main game logic in App.java, including a loop for guessing letters, tracking incorrect guesses, and determining win conditions. The game now supports repeated guesses until the word is fully guessed.

Testing and Maven Configuration:

  • Added a basic JUnit 5 test class AppTest.java to validate the application setup.
  • Created a pom.xml file to configure Maven for Java 1.8, JUnit 5, and the Maven Surefire plugin for testing.

Supporting Changes:

  • Updated .gitignore to exclude the target directory, ensuring build artifacts are not tracked.
  • Added prompts in prompts.md to guide developers in using GitHub Copilot for incremental game development.

This pull request provides a solid foundation for the Hangperson application, with clear documentation and modular implementation to support further enhancements.

@jlahtinen jlahtinen merged commit 2e9083f into main Apr 28, 2025
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.

2 participants