I am working on a mastermind intro project where one player is an encoder and the other is a decoder, but I want to make sure the encoder chooses letters from my list ROYGBV.
Is this a BJC assignment?
There's a CONTAINS block in Lists.
Red Orange Yellow Green Blue Violet?
And yeah, do:[scratchblocks]<(list)contains(answer)::list>[/scratchblocks]
return false it's normal if you search in a list of list...
This way you can recursively test the presence of anything and anywhere
Thank's, i like it !
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.