For these sorts of things I tend to go to the circuit simulator[0].
Also, for a game that teaches about this stuff while still being incredibly fun, I highly recommend Turing Complete[1].
[0] http://www.falstad.com/circuit/circuitjs.html
[1] https://store.steampowered.com/app/1444480/Turing_Complete/
[1] https://www.youtube.com/watch?v=QZwneRb-zqA (2 years ago), and more recently: https://www.youtube.com/watch?v=hEDQpqhY2MA and https://www.youtube.com/watch?v=_3cNcmli6xQ
[2] https://sebastian.itch.io/digital-logic-sim
https://store.steampowered.com/app/576030/MHRD/
For these sorts of things I tend to go to the circuit simulator[0].
Also, for a game that teaches about this stuff while still being incredibly fun, I highly recommend Turing Complete[1].
[0] http://www.falstad.com/circuit/circuitjs.html
[1] https://store.steampowered.com/app/1444480/Turing_Complete/