control 3x 7 segment single digits with 6 buttons

Why can you make 1 digit work with two buttons, but not 3 with 6 buttons?

You were asked what you meant by "this huge thing of code"

Post your code so people know what problems you're having. Explain what you tried.