making a tic tac toe game using digital logic design

Welcome to our site!
Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
- Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
- Forums
- Electronics Forums
- Electronic Projects Design/Ideas/Reviews
You should upgrade or use an alternative browser.
LED tic-tac-toe
- Thread starter Technose
- Start date
- Status
- Not open for further replies.
- #1
PLEASE HELP!!!

- #2
Starting at this barebones approach, we can try to make it more elegant. One thing you could do would be to use red/green bi-colored LEDs, to cut down on the physical 'bulbs' you have to look at. You could also cut down the switches to 9 by having it automatically keep track of whose turn it is. Start out with the first switch being turned on controlling a red LED. The next switch will automatically control a green LED. You could do that with a simple counter to keep track of the turns. You could use a 7490 decade counter for that, and use its least significant bit to determine red or green. When the counter hits 9, there's no more moves, so don't accept anymore input, except for a reset.
As for determining whether a move is valid, use a 2-input AND gate. Connect the LED to an inverter, and AND that with the switch. If either red/green LED is already on, then a 0 appears on the AND and nothing happens. If the LEDs were both was off, then the AND will turn current player's LED on. You may need additional gates to determine:
LED 1 green is OFF LED 1 red is OFF Switch 1 turned ON It's red's turn Therefore, turn on red LED 1.
LED 4 green is OFF LED 4 red is OFF Switch 4 turned ON It's green's turn Therefore, turn on green LED 4.
As for determining a winner, a bunch of 3 input AND gates is all that's needed. Figuring out a winner of 3-in-a-row game with 3 input AND gates should be pretty obvious. 8) Turn on a "red is the winner" or "green wins" indicator somewhere and stop accepting inputs. Fair warning, this method is going to be a big gob of wires! You might (hopefully) come up with a more efficient method for doing everything, but this should get you started. Good luck debugging that many gates and wires on a breadboard in lab. :roll:
- #4
- #6
- #8
MOD-EDIT - language please- language police !
- #9
- #10

- #11
- #12

- #13
- #14

- #15
- #16
Hi,
I know its been quite a while since this thread ended but i really wanted to ask bonxer some questions.
Firstly, How many latches are required in your circuit diagram coz from the looks of it i think you need 18 of em....correct me if im wrong
Secondly...is the number of AND gates that you have drwan for possible winning combinations enough or am i supposed to add more AND gates....???
Waiting for your reply
- #17
- #18
- Status
- Not open for further replies.
Similar threads
- Forums
- Electronics Forums
- Electronic Projects Design/Ideas/Reviews
- This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
making a tic tac toe game using digital logic design
Source: https://www.electro-tech-online.com/threads/led-tic-tac-toe.13821/
Posted by: bischoffwassis1948.blogspot.com
0 Response to "making a tic tac toe game using digital logic design"
Post a Comment