soo uh I've been trying to solve this problem but I can't realllly do it
so basically what I have is a bunch of answers and letters
letters can be arranged in a way to form an answer
but not all answers can be reached from the letters
furthermore (the part I'm having trouble with) letters have types (three of them to be exact) and I have to make it so that I can specify how much letters of the type (for example, three of type B and three of type C)
it has to give me the answers that can be reached and can be made with the specified numbers of types
what I'm doing currently is unexplainable broken stuff that almost works but fails because it fails to do the types part correctly
#asking a question on a post so it wont get buried again
57 messages · Page 1 of 1 (latest)
show what you've tried. give sample input/output. do some work before asking for help.
is it a homework problem?
no
I have done work
just that it's just some super big mess that I think I should approach differently from start
show sample input/output
if there are answers aaaaa bbbbb ccccc
and letters 3Ca 3Cb 3Cc 3Ba 3Bb 3Bc
I should be able to choose the type of the letter (the uppercase) and how much of the type
so if I choose 3C 2B
it could be all aaaaa bbbbb ccccc
since 3 C and 2 B types can be arranged into any of those
ya, I'm lost.
@torpid kestrel Is this correct?
Rephrase your initila question then and please try to use technical terms not "bunch of letters" etc^^°
that's not even a full sentence :/
and how much of the types
Please rephrase your question from beginning to end, in full sentences :/
there are multiple answers and there are multiple letters with a few types they can be in
input is the number of types (for example, two of type A and three of type B)
and output is the answers that can be made
@torpid kestrel If you would see this question on the internet, would you think that this is a "good phrased question" that anyone can understand?
well I can't really explain it
that's your first problem to solve then. If you cannot explain it, you most likely haven't fully understood the problem/question yourself and so nobody can help you.
Read your excercise/homework/task again, carefully, google words you don't understand, and make sure you fully understand it.
uhhhh
it's not really that kind of thing
it's my own project
so I have all the ideas in my head
I just don';t know what way to explain it
then explain what you are doing in your project, what you want to do in your current specific case and what your plan in your head looks like
alright give me a bit of time
my project is a puzzle/game solver
the game has answers (which are words from a dictionary) which I have an access to a copy
and in the game, there are letters, which I can use in order to basically "craft" words
the letters have types, and combining different types yields different results (specifically A, B, and C)
what my project aims to do is the user can tell it to find answers that are possible to be made with how many of each type of letters it must be made with
can you give an example? i have a better understanding now but it's still hard to understand. maybe some screenshot from the UI would help?
oh alright
I couldn't see
something like this
blue is type B and gray is type C
basically this would be a result from 2×C and 1×B
I still don't follow. what is the significance of the colors/types? how on earth does 2C + 1B = "why"?
as you can see on the top
that's the order I selected "why"
and h is of type B
and w and y is of type C
so one type B and two type C can form "why"
This doesn't explain the significance, this just explains what you're showing. What is the process behind the types?
What makes W and Y type C? Are you getting these from some list?
don't you see the color
why is it blue? is it:
- start with 1 grey blank, 1 blue blank, 1 grey blank
- pick from letters at the bottom: 1 blue h (must be in the middle spot), 3 grey h's, 3 grey w's, and 1 grey y?