#asking a question on a post so it wont get buried again

57 messages · Page 1 of 1 (latest)

torpid kestrel
#

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

dim violet
#

show what you've tried. give sample input/output. do some work before asking for help.

#

is it a homework problem?

torpid kestrel
#

no

#

I have done work

#

just that it's just some super big mess that I think I should approach differently from start

dim violet
#

show sample input/output

torpid kestrel
#

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

dim violet
#

ya, I'm lost.

leaden pawn
#

@torpid kestrel Is this correct?

torpid kestrel
#

not exactly

#

if I add the number of the types

#

then yes

leaden pawn
#

Rephrase your initila question then and please try to use technical terms not "bunch of letters" etc^^°

torpid kestrel
#

multiple answers

#

multiple types of letters

#

I choose which types of letters

leaden pawn
#

that's not even a full sentence :/

torpid kestrel
#

and how much of the types

leaden pawn
#

Please rephrase your question from beginning to end, in full sentences :/

torpid kestrel
#

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

leaden pawn
#

@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?

torpid kestrel
#

well I can't really explain it

leaden pawn
#

Read your excercise/homework/task again, carefully, google words you don't understand, and make sure you fully understand it.

torpid kestrel
#

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

leaden pawn
#

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

torpid kestrel
#

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

leaden pawn
#

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?

torpid kestrel
#

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

dim violet
#

I still don't follow. what is the significance of the colors/types? how on earth does 2C + 1B = "why"?

torpid kestrel
#

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"

untold stag
#

What makes W and Y type C? Are you getting these from some list?

torpid kestrel
#

don't you see the color

dim violet
#

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?
torpid kestrel
#

blue is type B

#

gray is type C

#

the order doesn't matter