I have a project in Discrete Math and we have to apply some switching theory with it. I've had studied different type of flip flops (JK, SR, and D) and still confused about the clock component. I know flip-flops are edge triggered. But the problem is applying this to my circuit. My project is a game (Dots and Boxes specifically) which involves 12 buttons for the main game and a single button for starting a new game. The problem is I dunno how to implement this using flip flops. I do know how to implement it using latches. So, how do I make that clock component if each of the 12 buttons have a JK flip flop and the new game button as K. Should I just connect a button and the new game button to an XNOR then to a clock. Clocks isn't straightforward for me. Please link some references I can study for me to understand this stuff better.
Just because the input is called clock it doesn't have to be a regular clock.
Do your flipflops also have an asynchronous reset input? If so the simplest solution for your situation is to tie J high and K low and use the buttons as the clocks. The reset button then connects to the reset input of all the flipflops.
Failing that you need an oscillator, a crystal and an inverter, or something like a 555 to generate a constant clock pulse.