profile

Debkalpa Dasđź‘‹

Innovative and enthusiastic CSE Professional. Proficient in data visualization, manipulation
and analysis. Skilled in problem solving, creative thinking, leadership and management.

Resume
project-details-1

Pycharm Python Project

The Hangman's Game

Overview

This project is a simple python based minigame where the user has to deduce the exact word by guessing letters or the entire word to complete the blanks in a limited number of tries which keeps decreasing with every wrong guess. Its a simple console based minigame.

Logic: In this project, the user has to first enter his name and select a difficulty level which gives him a limited number of tries based on his choice. Once that is done, certain number of blank spaces appear on the screen. Now the user has to guess and fill letters gradually and deduce the complete word. While entering the letters, any repetitions gets auto filled making the guess much more easier moving forward. Any wrong guesses will gradually reduce the tries till the user loses.

Design: This version of The Hangman's Game has been built using python. The blanks for the words are provided in a list in the code itself. Three difficulty levels has been added to give it a bit of twist. The entries and output is completely console based so no external interface has been created.

Challenges

Every project comes with its fair share of challenges. This Hangman's Game was no different. Linear planning an development made it easy to overcome these challenges.

  • Challenge: Adding difficulty levels.
  • Solution: A lot of research work and development has been done on enhancing sentiment analysis, but none were able to get that model accuracy above 90. Me and my team finally crossed the 90's mark with our model getting an average accuracy of 90.28%.
  • Challenge: Blanks filling for the words.
  • Solution: I have provided a number of words as a list in the code for the game. But the issue in logic comes when the user enters a letter which is repeated in the word so multiple blanks get filled. This issue was resolved using conditionals and the and appending the letters and comparing.
  • Challenge:Tracking game state.
  • Solution: Managing the state of the game, such as the number of tries left, letters guessed, and checking if the word has been fully guessed, required careful and intricate logic building. You had to ensure that the game responded appropriately to different situations, like repeated guesses or incorrect full-word guesses, without causing errors or unintended behavior.

Results/Conclusion:

This turned out to be a fun and low time consuming word-based minigame where the input and output are console based and the user gets limited tries based on his selected difficulty level. The user needs to guess and enter one word at a time or the entire word based on deduction and trial. Every wrong guess deducts a try and the user wins if he guesses the right word and loses if he fails to guess within the limited number of tries.

banner-shape-1
banner-shape-1
object-3d-1
object-3d-2