Working on a whack a mole project

So I'm working on this whack a mole proyect trying to make it work whit 24 buttoms, so I found this code for a 4 buttoms code, but when I try to add the 24 rest variables it seems to stop working can you give me any tip or advice????
Im working on and 2560, tvm, and sorry for bad english

sketch_focos.ino (10.8 KB)

gwctv_whack_a_mole.ino (5.07 KB)

Loos like it is time that you learn't about arrays

oh, thanks mate I'll look for it

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html . Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Thanks.. Tom... :slight_smile: