I have no idea what game you mean... but I also noticed that your description is somewhat too vague.
What exact code do you mean? Is it memory game with sequence of colors, puzzle with deciphering items by "right/wrong" guesses or maybe you need to assemble code part by part?
(I remembered Geekwad by the way, but while it have color-coded bomb, it's quite different from your description).
__________________
|