Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8164621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:21:32+00:00 2026-06-06T19:21:32+00:00

I have to write a hangman program, Only the house is evil and changes

  • 0

I have to write a hangman program, Only the “house” is evil and changes the word so the player (hopefully) loses.

I will create a set of all the words at the start of the game when they player chooses a letter i will create a set that matches the pattern, and continue creating the optimal subset.

for example

Assuming the user selects 3 letter words, and for this examples sake we will say there are only the following 3 letter words in the english language; Dog Fog And Fox Cat Not Bus

If the user Guesses “o” the program will compile a list of words with out “o” in them, I will sort this list in to sets one set would be “and” the other “bus” and an other “cat”

However I was wondering what the best method would be to store these sets.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:21:33+00:00Added an answer on June 6, 2026 at 7:21 pm

    As a suggestion, think about what operation you need to efficiently support. You will need to be able to take a word, map it to its word family, and from there to distribute the word into the collection of words matching that family. For this, consider using something like a Map that will associate the word family (represented however you wish) with the collection of words matching that family. You can represent the collection in many ways – as a Set, as a List, etc. That way, you can easily take the string, convert it to a word family, and then map the word family to the set of all words in that family.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have write this code but it does work only if I am already
I'm trying to write a little CLI Hangman game, just to create something in
For a class project, we have to create a hangman game in Java (we're
I have write this code for displaying some set of colors from panel: import
i have write this block of code in jquery to create three element after
hi i have write following code which prints elements in sorted order only one
I have write some function to create an exe file using ILGenerator. What I
I am new to zend framework. I have write this code to set cookie
I have write the code to create the report using itext.For that,i have to
I have write this code to create a gridview with 3 columns DataTable dt

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.