Factorio TIC-TAC-TOE

Post pictures and videos of your factories.
If possible, please post also the blueprints/maps of your creations!
For art/design etc. you can go to Fan Art.

Factorio TIC-TAC-TOE

Postby GalactusX31 » Thu Jan 11, 2018 3:35 am

Hello everyone, I've been playing factorio for a while now and I love the logical part and automation, and because many processes take time, in my free time I wanted to do something different, just for fun and a personal challenge, I searched the forum and google, and it seems that nobody has done this, so I've built it and I want to show you :)

I present to you: TIC-TAC-TOE

Image

Player control
Image
- The constant combinator framed in red serves to reset the game.

- The decider combinators framed in yellow serve to detect when a player presses a key, and makes the next player's turn jump, also prevents the previous player from pressing other keys and giving an erroneous result. Only one player is allowed to press keys on each turn, the player's turn is seen in the lights next to the keyboard with its corresponding color.

- The pressed keys of both players are stored in separate memories, each one denying its own information to the other memory, that way a player can not save a key that the other player already has.

Game logic rules
Image

- Here the rules of the game are saved and configured, the framed combinators correspond to the possible combinations that a player needs to win.

Game board
Image

- Each square of the grid has its own ID that corresponds to the color of the player and the key stored in the memory.
- I have decided to color the lights separately, that way I avoid mixing the signals and they can interfere with the operation of the circuit.


I am sure that I have made mistakes, that this design can be improved, but for now, I do not have enough knowledge of the factorial logic to do it, any suggestions to improve will be well received, I hope you like it and have fun :)

Blueprint
Code: Select all
0eNrtXe1uHMdyfZWAPwPKmP7uFpAAknMD5E+ukfhHgMAQKGptL0JRAkUZVzD0AH4PP5mfJLMkJa2m5mz3mV3ubo32x72wKGrJOV1ddbrnnKrfz15evV+8vVle3549/f1sefnm+t3Z0//9/ezd8pfri6vV124/vF2cPT1b3i5en52fXV+8Xv3p1eJy+Wpx8+TyzeuXy+uL2zc3Zx/Pz5bXrxb/OHtqPp5XP+DiZnn76+vF7fJy/DPsx5/OzxbXt8vb5eL+N7r7w4cX1+9fv1zc9D9k0+9yfvb2zbv+n765Xv0C/cc9Cd+F87MP/X+Y/rc7e7W8WVze/7U9P+sf+vbmzdWLl4tfL35b9v+8/zcPH/qi/7tXdx/0bvXVn5c3725fiEf7bXlz+77/yudf6f47nj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G36iZEUMvqDaNlVQ6Cq53FIB9qHGU2h9uEFGrcA6MUCL2f8liCdy6Gm0sc9DDnfITMWRxpZMEIbMGA96iNc9PyXJizwewwM0joZ85J3D4ZnAAKI2zUXSwy5BVrc9Fa0qDpFHHncpzcmb5ZhjI83ziebR9ve5/vQbWJULCMGFE5CqF20sLB4hgtn/KEl2r8AsPkGRGb8miCVyprE9qa6oLTw4/LMfJj+uL4QbO7ei1/u3jd/1Yvr94v3t4s+0A5P7u6eLnoH+Hs3y8u+ydcvvmnH//j+yc/Puv/9/e/9X/92+Lm3d3qxJxMicmtFEUf/x9s2MYq
User avatar
GalactusX31
Inserter
Inserter
 
Posts: 27
Joined: Thu Jul 20, 2017 11:27 am

Re: Factorio TIC-TAC-TOE

Postby looney » Mon Feb 05, 2018 1:48 pm

There's probably a way to drastically simplify your circuitry by using bit-wise operators, eg AND.
If you say that each board position is 2^N. With a single constant generator you can emit all the winning board positions; A=7, B=56 etc
Then I think you can AND the winning positions against both players ....
Or something like that anyway.
looney
Inserter
Inserter
 
Posts: 30
Joined: Wed Nov 04, 2015 11:44 am


Return to Show your Creations

Who is online

Users browsing this forum: No registered users and 3 guests