I’m lost on how to make it so somebody wins. I was thinking of having object values and stuff so that you could get the three in a row to win but I have no idea how I’d actually detect if three tiles in a row are the same value. Can someone please help?
You need to run a check for every angle that you can win, by adding them up or seeing if those spots have the same value. There are 8 checks in total that you have to look for every time someone makes a move ( ☰, |||, and X). There are a lot of different ways of doing this, try whatever makes the most sense to you.
This will see if the opponent has won in 1 frame.
The opponent’s piece must be marked as “2”. The system is fully adjustable and should work for any sized board like 4x4, 5x5, etc.
To check if you have won, duplicate that bundle, then there is a filter set to 2 that needs to be set to 1. Your pieces must be 1.
Here is a vertical and horizontal check (Sending in parts because the entire system together is too long for the forums)
{"data":{"behavior":{"v":"2","nodes":[{"inputCount":1,"outputCount":2,"name":"Detect - Horizontal","behaviorType":"logic.NodeGroup","x":0,"y":288,"group":"d76781b98a3c3944","id":"d76781a317ab744d","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-360,"y":-96,"group":"d76781a317ab744d","id":"d76781881ecd274a","portId":"d76781a317ab744di0","tag":"Grid","dataType":3},{"inputCount":1,"outputCount":1,"name":"Number List Count","behaviorType":"logic.data.ListCount","x":-180,"y":-32,"group":"d76781a317ab744d","id":"d76781881f0ea643"},{"inputCount":7,"outputCount":5,"name":"Number List","behaviorType":"logic.data.NumberList","x":630,"y":-448,"group":"d76781a0cd90274d","id":"d7678188cff00c46","startVal":[]},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":0,"y":-224,"group":"d76781a0cd90274d","id":"d7678189ae5ea94f","tag":"# of Columns:Number","version":2,"dataType":2},{"gateVal":0,"mode":"less than or equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":450,"y":-160,"group":"d76781a0cd90274d","id":"d76781893c342846"},{"expression":"A+1","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":1,"version":2,"tag":"","inputCount":2,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":450,"y":-288,"group":"d76781a0cd90274d","id":"d767819932f2c64d"},{"gateVal":2,"mode":"equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":810,"y":-448,"group":"d76781a0cd90274d","id":"d76781991c694043"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":990,"y":-576,"group":"d76781a0cd90274d","id":"d76781996fd83843","startVal":1,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":1170,"y":-576,"group":"d76781a0cd90274d","id":"d767819901f4394f","startVal":0,"roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":450,"y":-576,"group":"d76781a0cd90274d","id":"d76781992fbef54e","startVal":0,"tag":"Look Again","roundMode":1},{"expression":"A-1","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":1,"version":2,"tag":"","inputCount":2,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":270,"y":-288,"group":"d76781a0cd90274d","id":"d767819d78b76c48"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":990,"y":-448,"group":"d76781a0cd90274d","id":"d767819d42606d4f","startVal":0,"tag":"","roundMode":1},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":990,"y":-352,"group":"d76781a0cd90274d","id":"d767819d1129d34d","portId":"d76781a0cd90274do0","tag":"Fail","dataType":2},{"expression":"(A-1)%B+2","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":270,"y":-160,"group":"d76781a0cd90274d","id":"d767819e1edcec43"},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":450,"y":-448,"group":"d76781a0cd90274d","id":"d767819f8a3eff47","portId":"d76781a0cd90274di0","tag":"Board","dataType":3},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":0,"y":-288,"group":"d76781a0cd90274d","id":"d767819ff23f6846","portId":"d76781a0cd90274di1","tag":"Index","dataType":2},{"gateVal":0,"mode":"equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":1350,"y":-576,"group":"d76781a0cd90274d","id":"d767819f57756b49"},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":1170,"y":-480,"group":"d76781a0cd90274d","id":"d76781a0fd10a34b","tag":"# of Columns:Number","version":2,"dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":1530,"y":-576,"group":"d76781a0cd90274d","id":"d76781a06f139b45","portId":"d76781a0cd90274do1","tag":"Win","dataType":2},{"inputCount":2,"outputCount":2,"name":"Horizontal Win","behaviorType":"logic.NodeGroup","x":540,"y":-64,"group":"d76781a317ab744d","id":"d76781a0cd90274d","isMenuItem":false},{"expression":"A*(-1)+1","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":1,"version":2,"tag":"","inputCount":2,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":0,"y":224,"group":"d76781a317ab744d","id":"d76781a169169d44"},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":-180,"y":224,"group":"d76781a317ab744d","id":"d76781a2b2d4f84d","tag":"# of Columns:Number","version":2,"dataType":2},{"expression":"A+B","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":180,"y":64,"group":"d76781a317ab744d","id":"d76781a3c20be841"},{"gateVal":0,"mode":"less than or equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":360,"y":64,"group":"d76781a317ab744d","id":"d76781a30361fc41"},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":720,"y":64,"group":"d76781a317ab744d","id":"d76781a3dd71924f","_startVal":1,"dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":900,"y":64,"group":"d76781a317ab744d","id":"d76781a37ee8d94c","portId":"d76781a317ab744do0","tag":"No Win","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":900,"y":-64,"group":"d76781a317ab744d","id":"d76781a35c42ff41","portId":"d76781a317ab744do1","tag":"Win","dataType":2},{"inputCount":1,"outputCount":2,"name":"Detect | Vertical","behaviorType":"logic.NodeGroup","x":0,"y":384,"group":"d76781b98a3c3944","id":"d76781ac80f9124f","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-270,"y":-96,"group":"d76781ac80f9124f","id":"d76781a40af2fe4a","portId":"d76781ac80f9124fi0","tag":"Grid","dataType":3},{"inputCount":1,"outputCount":1,"name":"Number List Count","behaviorType":"logic.data.ListCount","x":-270,"y":0,"group":"d76781ac80f9124f","id":"d76781a4679c3a4f"},{"inputCount":7,"outputCount":5,"name":"Number List","behaviorType":"logic.data.NumberList","x":630,"y":-448,"group":"d76781a94343aa4e","id":"d76781a42b059a45","startVal":[]},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":0,"y":-160,"group":"d76781a94343aa4e","id":"d76781a515dafe4c","tag":"# of Columns:Number","version":2,"dataType":2},{"gateVal":0,"mode":"less than or equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":450,"y":-160,"group":"d76781a94343aa4e","id":"d76781a517866344"},{"expression":"A+B","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":450,"y":-288,"group":"d76781a94343aa4e","id":"d76781a6d9fde54c"},{"gateVal":2,"mode":"equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":810,"y":-448,"group":"d76781a94343aa4e","id":"d76781a647b07441"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":990,"y":-576,"group":"d76781a94343aa4e","id":"d76781a64e335842","startVal":1,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":1170,"y":-576,"group":"d76781a94343aa4e","id":"d76781a6b185cb48","startVal":0,"roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":630,"y":-704,"group":"d76781a94343aa4e","id":"d76781a695e7204c","startVal":0,"tag":"Look Again","roundMode":1},{"expression":"A-B","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":270,"y":-288,"group":"d76781a94343aa4e","id":"d76781a70c7c8647"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":990,"y":-448,"group":"d76781a94343aa4e","id":"d76781a71cbdd44c","startVal":0,"tag":"","roundMode":1},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":990,"y":-352,"group":"d76781a94343aa4e","id":"d76781a7ac9ca240","portId":"d76781a94343aa4eo0","tag":"Fail","dataType":2},{"expression":"A + B","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":270,"y":-160,"group":"d76781a94343aa4e","id":"d76781a8f67f0440"},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":450,"y":-448,"group":"d76781a94343aa4e","id":"d76781a8bb5ccc46","portId":"d76781a94343aa4ei0","tag":"Board","dataType":3},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":0,"y":-320,"group":"d76781a94343aa4e","id":"d76781a8e8d58246","portId":"d76781a94343aa4ei1","tag":"Index","dataType":2},{"gateVal":0,"mode":"equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":1350,"y":-576,"group":"d76781a94343aa4e","id":"d76781a8e447414d"},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":1170,"y":-480,"group":"d76781a94343aa4e","id":"d76781a85f80b146","tag":"# of Columns:Number","version":2,"dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":1530,"y":-576,"group":"d76781a94343aa4e","id":"d76781a97f8d534c","portId":"d76781a94343aa4eo1","tag":"Win","dataType":2},{"inputCount":1,"outputCount":1,"name":"Number List Count","behaviorType":"logic.data.ListCount","x":450,"y":-384,"group":"d76781a94343aa4e","id":"d76781a9ac749b48"},{"inputCount":2,"outputCount":2,"name":"Vertical Win","behaviorType":"logic.NodeGroup","x":540,"y":-64,"group":"d76781ac80f9124f","id":"d76781a94343aa4e","isMenuItem":false},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":0,"y":192,"group":"d76781ac80f9124f","id":"d76781a9a7c3db4e","tag":"# of Columns:Number","version":2,"dataType":2},{"expression":"A+1","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":1,"version":2,"tag":"","inputCount":2,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":0,"y":64,"group":"d76781ac80f9124f","id":"d76781aa2950704b"},{"gateVal":0,"mode":"less than or equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":270,"y":64,"group":"d76781ac80f9124f","id":"d76781aaa2d64c4d"},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":720,"y":64,"group":"d76781ac80f9124f","id":"d76781aaf17a3843","_startVal":1,"dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":900,"y":64,"group":"d76781ac80f9124f","id":"d76781aa3e26fa42","portId":"d76781ac80f9124fo0","tag":"No Win","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":900,"y":-64,"group":"d76781ac80f9124f","id":"d76781ab60d5a84a","portId":"d76781ac80f9124fo1","tag":"Win","dataType":2},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":0,"y":-32,"group":"d76781ac80f9124f","id":"d76781ac7114634f","startVal":0,"roundMode":1}],"links":[{"input_id":"d76781a0cd90274di0","output_id":"d76781881ecd274ao0"},{"input_id":"d76781881f0ea643i0","output_id":"d76781881ecd274ao0"},{"input_id":"d76781a3dd71924fi1","output_id":"d76781881f0ea643o0"},{"input_id":"d76781a30361fc41i1","output_id":"d76781881f0ea643o0"},{"input_id":"d76781a3c20be841i2","output_id":"d76781881f0ea643o0"},{"input_id":"d76781a169169d44i1","output_id":"d76781881f0ea643o0"},{"input_id":"d76781991c694043i0","output_id":"d7678188cff00c46o1"},{"input_id":"d767819e1edcec43i1","output_id":"d7678189ae5ea94fo0"},{"input_id":"d76781893c342846i1","output_id":"d7678189ae5ea94fo0"},{"input_id":"d767819932f2c64di1","output_id":"d76781893c342846o0"},{"input_id":"d767819d1129d34di0","output_id":"d76781893c342846o1"},{"input_id":"d76781992fbef54ei0","output_id":"d767819932f2c64do0"},{"input_id":"d7678188cff00c46i3","output_id":"d767819932f2c64do0"},{"input_id":"d76781996fd83843i1","output_id":"d76781991c694043o0"},{"input_id":"d767819d42606d4fi1","output_id":"d76781991c694043o1"},{"input_id":"d767819d1129d34di0","output_id":"d76781991c694043o1"},{"input_id":"d767819901f4394fi2","output_id":"d76781996fd83843o0"},{"input_id":"d767819f57756b49i0","output_id":"d767819901f4394fo0"},{"input_id":"d767819932f2c64di0","output_id":"d76781992fbef54eo0"},{"input_id":"d767819e1edcec43i0","output_id":"d76781992fbef54eo0"},{"input_id":"d767819e1edcec43i2","output_id":"d76781992fbef54eo0"},{"input_id":"d767819932f2c64di0","output_id":"d767819d78b76c48o0"},{"input_id":"d767819901f4394fi0","output_id":"d767819d42606d4fo0"},{"input_id":"d76781893c342846i0","output_id":"d767819e1edcec43o0"},{"input_id":"d7678188cff00c46i0","output_id":"d767819f8a3eff47o0"},{"input_id":"d767819d78b76c48i0","output_id":"d767819ff23f6846o0"},{"input_id":"d767819d78b76c48i1","output_id":"d767819ff23f6846o0"},{"input_id":"d767819e1edcec43i0","output_id":"d767819ff23f6846o0"},{"input_id":"d767819e1edcec43i2","output_id":"d767819ff23f6846o0"},{"input_id":"d76781a06f139b45i0","output_id":"d767819f57756b49o0"},{"input_id":"d767819d42606d4fi1","output_id":"d767819f57756b49o0"},{"input_id":"d76781992fbef54ei1","output_id":"d767819f57756b49o1"},{"input_id":"d767819f57756b49i1","output_id":"d76781a0fd10a34bo0"},{"input_id":"d76781a3c20be841i2","output_id":"d76781a0cd90274do0"},{"input_id":"d76781a35c42ff41i0","output_id":"d76781a0cd90274do1"},{"input_id":"d76781a3dd71924fi0","output_id":"d76781a0cd90274do1"},{"input_id":"d76781a3c20be841i0","output_id":"d76781a169169d44o0"},{"input_id":"d76781a3c20be841i1","output_id":"d76781a2b2d4f84do0"},{"input_id":"d76781a169169d44i0","output_id":"d76781a2b2d4f84do0"},{"input_id":"d76781a169169d44i1","output_id":"d76781a2b2d4f84do0"},{"input_id":"d76781a3c20be841i0","output_id":"d76781a3c20be841o0"},{"input_id":"d76781a30361fc41i0","output_id":"d76781a3c20be841o0"},{"input_id":"d76781a0cd90274di1","output_id":"d76781a30361fc41o0"},{"input_id":"d76781a3dd71924fi2","output_id":"d76781a30361fc41o1"},{"input_id":"d76781a2b2d4f84di1","output_id":"d76781a30361fc41o1"},{"input_id":"d76781a37ee8d94ci0","output_id":"d76781a3dd71924fo0"},{"input_id":"d76781a94343aa4ei0","output_id":"d76781a40af2fe4ao0"},{"input_id":"d76781a4679c3a4fi0","output_id":"d76781a40af2fe4ao0"},{"input_id":"d76781ac7114634fi1","output_id":"d76781a4679c3a4fo0"},{"input_id":"d76781aaf17a3843i1","output_id":"d76781a4679c3a4fo0"},{"input_id":"d76781aa2950704bi1","output_id":"d76781a4679c3a4fo0"},{"input_id":"d76781a647b07441i0","output_id":"d76781a42b059a45o1"},{"input_id":"d76781a70c7c8647i1","output_id":"d76781a515dafe4co0"},{"input_id":"d76781a6d9fde54ci1","output_id":"d76781a515dafe4co0"},{"input_id":"d76781a8f67f0440i1","output_id":"d76781a515dafe4co0"},{"input_id":"d76781a6d9fde54ci2","output_id":"d76781a517866344o0"},{"input_id":"d76781a7ac9ca240i0","output_id":"d76781a517866344o1"},{"input_id":"d76781a695e7204ci0","output_id":"d76781a6d9fde54co0"},{"input_id":"d76781a42b059a45i3","output_id":"d76781a6d9fde54co0"},{"input_id":"d76781a64e335842i1","output_id":"d76781a647b07441o0"},{"input_id":"d76781a71cbdd44ci1","output_id":"d76781a647b07441o1"},{"input_id":"d76781a7ac9ca240i0","output_id":"d76781a647b07441o1"},{"input_id":"d76781a6b185cb48i2","output_id":"d76781a64e335842o0"},{"input_id":"d76781a8e447414di0","output_id":"d76781a6b185cb48o0"},{"input_id":"d76781a6d9fde54ci0","output_id":"d76781a695e7204co0"},{"input_id":"d76781a8f67f0440i0","output_id":"d76781a695e7204co0"},{"input_id":"d76781a8f67f0440i2","output_id":"d76781a695e7204co0"},{"input_id":"d76781a6d9fde54ci0","output_id":"d76781a70c7c8647o0"},{"input_id":"d76781a6b185cb48i0","output_id":"d76781a71cbdd44co0"},{"input_id":"d76781a517866344i0","output_id":"d76781a8f67f0440o0"},{"input_id":"d76781a42b059a45i0","output_id":"d76781a8bb5ccc46o0"},{"input_id":"d76781a9ac749b48i0","output_id":"d76781a8bb5ccc46o0"},{"input_id":"d76781a70c7c8647i0","output_id":"d76781a8e8d58246o0"},{"input_id":"d76781a70c7c8647i2","output_id":"d76781a8e8d58246o0"},{"input_id":"d76781a8f67f0440i0","output_id":"d76781a8e8d58246o0"},{"input_id":"d76781a8f67f0440i2","output_id":"d76781a8e8d58246o0"},{"input_id":"d76781a97f8d534ci0","output_id":"d76781a8e447414do0"},{"input_id":"d76781a71cbdd44ci1","output_id":"d76781a8e447414do0"},{"input_id":"d76781a695e7204ci1","output_id":"d76781a8e447414do1"},{"input_id":"d76781a8e447414di1","output_id":"d76781a85f80b146o0"},{"input_id":"d76781a517866344i1","output_id":"d76781a9ac749b48o0"},{"input_id":"d76781aa2950704bi1","output_id":"d76781a94343aa4eo0"},{"input_id":"d76781ab60d5a84ai0","output_id":"d76781a94343aa4eo1"},{"input_id":"d76781aaf17a3843i0","output_id":"d76781a94343aa4eo1"},{"input_id":"d76781aaa2d64c4di1","output_id":"d76781a9a7c3db4eo0"},{"input_id":"d76781aa2950704bi0","output_id":"d76781aa2950704bo0"},{"input_id":"d76781aaa2d64c4di0","output_id":"d76781aa2950704bo0"},{"input_id":"d76781a94343aa4ei1","output_id":"d76781aaa2d64c4do0"},{"input_id":"d76781aaf17a3843i2","output_id":"d76781aaa2d64c4do1"},{"input_id":"d76781aa3e26fa42i0","output_id":"d76781aaf17a3843o0"},{"input_id":"d76781aa2950704bi0","output_id":"d76781ac7114634fo0"}]}}}
Diagonal Checks
{"data":{"behavior":{"v":"2","nodes":[{"inputCount":1,"outputCount":2,"name":"Detect / Forw Dia","behaviorType":"logic.NodeGroup","x":0,"y":480,"group":"d76781b98a3c3944","id":"d76781b3388e934c","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-270,"y":-96,"group":"d76781b3388e934c","id":"d76781acee600841","portId":"d76781b3388e934ci0","tag":"Grid","dataType":3},{"inputCount":1,"outputCount":1,"name":"Number List Count","behaviorType":"logic.data.ListCount","x":-270,"y":0,"group":"d76781b3388e934c","id":"d76781ac6f8d0240"},{"inputCount":7,"outputCount":5,"name":"Number List","behaviorType":"logic.data.NumberList","x":630,"y":-448,"group":"d76781af465daa48","id":"d76781ac6a575d4a","startVal":[]},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":0,"y":-640,"group":"d76781af465daa48","id":"d76781adc297ee4c","tag":"# of Columns:Number","version":2,"dataType":2},{"gateVal":2,"mode":"equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":810,"y":-416,"group":"d76781af465daa48","id":"d76781ada14e024a"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":990,"y":-544,"group":"d76781af465daa48","id":"d76781ad11f63f4c","startVal":1,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":1170,"y":-544,"group":"d76781af465daa48","id":"d76781adb32c9344","startVal":0,"roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":990,"y":-416,"group":"d76781af465daa48","id":"d76781ae4d51f744","startVal":0,"tag":"","roundMode":1},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":990,"y":-320,"group":"d76781af465daa48","id":"d76781ae9810b043","portId":"d76781af465daa48o0","tag":"Fail","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":450,"y":-448,"group":"d76781af465daa48","id":"d76781ae073c8e48","portId":"d76781af465daa48i0","tag":"Board","dataType":3},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":0,"y":-448,"group":"d76781af465daa48","id":"d76781aeb68e2f4c","portId":"d76781af465daa48i1","tag":"Index","dataType":2},{"gateVal":0,"mode":"equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":1350,"y":-544,"group":"d76781af465daa48","id":"d76781aeb129a641"},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":1170,"y":-448,"group":"d76781af465daa48","id":"d76781aec19c1b4b","tag":"# of Columns:Number","version":2,"dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":1530,"y":-544,"group":"d76781af465daa48","id":"d76781afb08b7b44","portId":"d76781af465daa48o1","tag":"Win","dataType":2},{"inputCount":1,"outputCount":1,"name":"Number List Count","behaviorType":"logic.data.ListCount","x":450,"y":-384,"group":"d76781af465daa48","id":"d76781afe5a80847"},{"expression":"A+B-1","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":270,"y":-672,"group":"d76781af465daa48","id":"d76781afb1606d43"},{"gateVal":0,"mode":"less than or equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":450,"y":-320,"group":"d76781af465daa48","id":"d76781afe01f7c4a"},{"inputCount":2,"outputCount":2,"name":"/ Win","behaviorType":"logic.NodeGroup","x":180,"y":-96,"group":"d76781b3388e934c","id":"d76781af465daa48","isMenuItem":false},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":-270,"y":192,"group":"d76781b3388e934c","id":"d76781b3eb1d8043","tag":"# of Columns:Number","version":2,"dataType":2},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":360,"y":32,"group":"d76781b3388e934c","id":"d76781b332fba04d","_startVal":1,"dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":540,"y":32,"group":"d76781b3388e934c","id":"d76781b30a5ef443","portId":"d76781b3388e934co0","tag":"No Win","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":540,"y":-96,"group":"d76781b3388e934c","id":"d76781b392be2446","portId":"d76781b3388e934co1","tag":"Win","dataType":2},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":0,"y":64,"group":"d76781b3388e934c","id":"d76781b31bc3464a","startVal":0,"roundMode":1},{"inputCount":1,"outputCount":2,"name":"Detect \\ Back Dia","behaviorType":"logic.NodeGroup","x":0,"y":576,"group":"d76781b98a3c3944","id":"d76781b85f8e0e4f","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-270,"y":-96,"group":"d76781b85f8e0e4f","id":"d76781b4827bf943","portId":"d76781b85f8e0e4fi0","tag":"Grid","dataType":3},{"inputCount":1,"outputCount":1,"name":"Number List Count","behaviorType":"logic.data.ListCount","x":-270,"y":0,"group":"d76781b85f8e0e4f","id":"d76781b4e7031e4f"},{"inputCount":7,"outputCount":5,"name":"Number List","behaviorType":"logic.data.NumberList","x":630,"y":-448,"group":"d76781b7ff927241","id":"d76781b43889fe4c","startVal":[]},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":0,"y":-160,"group":"d76781b7ff927241","id":"d76781b45060b644","tag":"# of Columns:Number","version":2,"dataType":2},{"gateVal":2,"mode":"equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":810,"y":-448,"group":"d76781b7ff927241","id":"d76781b4035ecb4b"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":990,"y":-576,"group":"d76781b7ff927241","id":"d76781b4b1bcfe44","startVal":1,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":1170,"y":-576,"group":"d76781b7ff927241","id":"d76781b57fd8964b","startVal":0,"roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":990,"y":-448,"group":"d76781b7ff927241","id":"d76781b503331e40","startVal":0,"tag":"","roundMode":1},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":990,"y":-352,"group":"d76781b7ff927241","id":"d76781b54d2e8044","portId":"d76781b7ff927241o0","tag":"Fail","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":450,"y":-448,"group":"d76781b7ff927241","id":"d76781b5a3b94e47","portId":"d76781b7ff927241i0","tag":"Board","dataType":3},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":0,"y":-320,"group":"d76781b7ff927241","id":"d76781b51b7fae43","portId":"d76781b7ff927241i1","tag":"Index","dataType":2},{"gateVal":0,"mode":"equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":1350,"y":-576,"group":"d76781b7ff927241","id":"d76781b5dc77844e"},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":1170,"y":-480,"group":"d76781b7ff927241","id":"d76781b62f1ce44b","tag":"# of Columns:Number","version":2,"dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":1530,"y":-576,"group":"d76781b7ff927241","id":"d76781b63a18fe4b","portId":"d76781b7ff927241o1","tag":"Win","dataType":2},{"inputCount":1,"outputCount":1,"name":"Number List Count","behaviorType":"logic.data.ListCount","x":450,"y":-384,"group":"d76781b7ff927241","id":"d76781b6ecfd1c47"},{"expression":"A+B+1","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":450,"y":-704,"group":"d76781b7ff927241","id":"d76781b694de7842"},{"gateVal":0,"mode":"less than or equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":450,"y":-320,"group":"d76781b7ff927241","id":"d76781b739bb8c46"},{"inputCount":2,"outputCount":2,"name":"\\ Win","behaviorType":"logic.NodeGroup","x":90,"y":-96,"group":"d76781b85f8e0e4f","id":"d76781b7ff927241","isMenuItem":false},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":270,"y":32,"group":"d76781b85f8e0e4f","id":"d76781b7abab0540","_startVal":1,"dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":450,"y":32,"group":"d76781b85f8e0e4f","id":"d76781b76d9daf4a","portId":"d76781b85f8e0e4fo0","tag":"No Win","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":450,"y":-96,"group":"d76781b85f8e0e4f","id":"d76781b7bc25db41","portId":"d76781b85f8e0e4fo1","tag":"Win","dataType":2},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-90,"y":0,"group":"d76781b85f8e0e4f","id":"d76781b761c19147","startVal":1,"tag":"","roundMode":1}],"links":[{"input_id":"d76781af465daa48i0","output_id":"d76781acee600841o0"},{"input_id":"d76781ac6f8d0240i0","output_id":"d76781acee600841o0"},{"input_id":"d76781b332fba04di1","output_id":"d76781ac6f8d0240o0"},{"input_id":"d76781b31bc3464ai1","output_id":"d76781ac6f8d0240o0"},{"input_id":"d76781ada14e024ai0","output_id":"d76781ac6a575d4ao1"},{"input_id":"d76781afb1606d43i1","output_id":"d76781adc297ee4co0"},{"input_id":"d76781ad11f63f4ci1","output_id":"d76781ada14e024ao0"},{"input_id":"d76781ae4d51f744i1","output_id":"d76781ada14e024ao1"},{"input_id":"d76781ae9810b043i0","output_id":"d76781ada14e024ao1"},{"input_id":"d76781adb32c9344i2","output_id":"d76781ad11f63f4co0"},{"input_id":"d76781aeb129a641i0","output_id":"d76781adb32c9344o0"},{"input_id":"d76781adb32c9344i0","output_id":"d76781ae4d51f744o0"},{"input_id":"d76781ac6a575d4ai0","output_id":"d76781ae073c8e48o0"},{"input_id":"d76781afe5a80847i0","output_id":"d76781ae073c8e48o0"},{"input_id":"d76781afb1606d43i0","output_id":"d76781aeb68e2f4co0"},{"input_id":"d76781ac6a575d4ai3","output_id":"d76781aeb68e2f4co0"},{"input_id":"d76781afb08b7b44i0","output_id":"d76781aeb129a641o0"},{"input_id":"d76781ae4d51f744i1","output_id":"d76781aeb129a641o0"},{"input_id":"d76781afb1606d43i2","output_id":"d76781aeb129a641o1"},{"input_id":"d76781aeb129a641i1","output_id":"d76781aec19c1b4bo0"},{"input_id":"d76781afe01f7c4ai1","output_id":"d76781afe5a80847o0"},{"input_id":"d76781afb1606d43i0","output_id":"d76781afb1606d43o0"},{"input_id":"d76781afe01f7c4ai0","output_id":"d76781afb1606d43o0"},{"input_id":"d76781ac6a575d4ai3","output_id":"d76781afe01f7c4ao0"},{"input_id":"d76781b332fba04di2","output_id":"d76781af465daa48o0"},{"input_id":"d76781b392be2446i0","output_id":"d76781af465daa48o1"},{"input_id":"d76781b332fba04di0","output_id":"d76781af465daa48o1"},{"input_id":"d76781b31bc3464ai0","output_id":"d76781b3eb1d8043o0"},{"input_id":"d76781b30a5ef443i0","output_id":"d76781b332fba04do0"},{"input_id":"d76781af465daa48i1","output_id":"d76781b31bc3464ao0"},{"input_id":"d76781b7ff927241i0","output_id":"d76781b4827bf943o0"},{"input_id":"d76781b4e7031e4fi0","output_id":"d76781b4827bf943o0"},{"input_id":"d76781b761c19147i1","output_id":"d76781b4e7031e4fo0"},{"input_id":"d76781b7abab0540i1","output_id":"d76781b4e7031e4fo0"},{"input_id":"d76781b4035ecb4bi0","output_id":"d76781b43889fe4co1"},{"input_id":"d76781b694de7842i1","output_id":"d76781b45060b644o0"},{"input_id":"d76781b4b1bcfe44i1","output_id":"d76781b4035ecb4bo0"},{"input_id":"d76781b503331e40i1","output_id":"d76781b4035ecb4bo1"},{"input_id":"d76781b54d2e8044i0","output_id":"d76781b4035ecb4bo1"},{"input_id":"d76781b57fd8964bi2","output_id":"d76781b4b1bcfe44o0"},{"input_id":"d76781b694de7842i2","output_id":"d76781b57fd8964bo0"},{"input_id":"d76781b5dc77844ei0","output_id":"d76781b57fd8964bo0"},{"input_id":"d76781b57fd8964bi0","output_id":"d76781b503331e40o0"},{"input_id":"d76781b43889fe4ci0","output_id":"d76781b5a3b94e47o0"},{"input_id":"d76781b6ecfd1c47i0","output_id":"d76781b5a3b94e47o0"},{"input_id":"d76781b694de7842i0","output_id":"d76781b51b7fae43o0"},{"input_id":"d76781b43889fe4ci3","output_id":"d76781b51b7fae43o0"},{"input_id":"d76781b63a18fe4bi0","output_id":"d76781b5dc77844eo0"},{"input_id":"d76781b503331e40i1","output_id":"d76781b5dc77844eo0"},{"input_id":"d76781b5dc77844ei1","output_id":"d76781b62f1ce44bo0"},{"input_id":"d76781b739bb8c46i1","output_id":"d76781b6ecfd1c47o0"},{"input_id":"d76781b694de7842i0","output_id":"d76781b694de7842o0"},{"input_id":"d76781b739bb8c46i0","output_id":"d76781b694de7842o0"},{"input_id":"d76781b43889fe4ci3","output_id":"d76781b739bb8c46o0"},{"input_id":"d76781b7abab0540i2","output_id":"d76781b7ff927241o0"},{"input_id":"d76781b7bc25db41i0","output_id":"d76781b7ff927241o1"},{"input_id":"d76781b7abab0540i0","output_id":"d76781b7ff927241o1"},{"input_id":"d76781b76d9daf4ai0","output_id":"d76781b7abab0540o0"},{"input_id":"d76781b7ff927241i1","output_id":"d76781b761c19147o0"}]}}}
If the system is properly set up it should look like this
(Ignore the “Output” output)
The order of the behaviors are important.
This is what you should use to make the array. This is required for it to work because the win check needs to know the number of rows and columns which this gives.
{"data":{"behavior":{"v":"2","nodes":[{"inputCount":3,"outputCount":0,"name":"Creating Array","behaviorType":"logic.NodeGroup","x":0,"y":480,"id":"49fc2a78df8ad84e","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-180,"y":-96,"group":"49fc2a78df8ad84e","id":"49fc2a79505c884a","portId":"49fc2a78df8ad84ei0","tag":"[Col[","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-180,"y":0,"group":"49fc2a78df8ad84e","id":"49fc2a7a1321b94e","portId":"49fc2a78df8ad84ei1","tag":"[Row]","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-180,"y":96,"group":"49fc2a78df8ad84e","id":"49fc2a7a592f5c48","portId":"49fc2a78df8ad84ei2","tag":"Create","dataType":2},{"expression":"(A*B)/2","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":90,"y":64,"group":"49fc2a78df8ad84e","id":"49fc2a8987bcd241","notes":"Only reason that it seperates is because it's better for performance if you had a list that was big (e.g A list that was 15x15)","n_o":1},{"inputCount":2,"outputCount":2,"name":"Repeater","behaviorType":"logic.logic.Repeater","x":450,"y":-32,"group":"49fc2a78df8ad84e","id":"49fc2a8a961bc644","repeatCount":0},{"inputCount":7,"outputCount":5,"name":"Number List","behaviorType":"logic.data.NumberList","x":1170,"y":64,"group":"49fc2a78df8ad84e","id":"49fc2a8ad95b844e","startVal":[]},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":270,"y":-32,"group":"49fc2a78df8ad84e","id":"49fc2a8b2a3daa4c","notes":"All these timers aren't needed, I I should make this all 1 frame","n_o":1,"startVal":0,"tag":"","roundMode":3},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":270,"y":192,"group":"49fc2a78df8ad84e","id":"49fc2a8b0a200945","startVal":0,"tag":"","roundMode":4},{"inputCount":2,"outputCount":2,"name":"Repeater","behaviorType":"logic.logic.Repeater","x":450,"y":192,"group":"49fc2a78df8ad84e","id":"49fc2a8c8bdc284f","repeatCount":0},{"delay":0,"count":1,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":270,"y":64,"group":"49fc2a78df8ad84e","id":"49fc2a8c33169d41"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":630,"y":192,"group":"49fc2a78df8ad84e","id":"49fc2a8c7063ff4b","startVal":0,"roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":630,"y":-32,"group":"49fc2a78df8ad84e","id":"49fc2a8c6f4ba842","startVal":0,"roundMode":1},{"delay":0,"count":1,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":630,"y":64,"group":"49fc2a78df8ad84e","id":"49fc2a8d0fb4784b"},{"delay":0.1,"count":1,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":810,"y":288,"group":"49fc2a78df8ad84e","id":"49fc2a993e7d8049"},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":90,"y":-320,"group":"49fc2a78df8ad84e","id":"49fc2a99f95c5141","notes":"Import becaused it's used in many of the calculations when seeing if a position is winning.","n_o":1,"tag":"# of Columns:Number","version":2,"dataType":2},{"inputCount":7,"outputCount":5,"name":"Number List","behaviorType":"logic.data.NumberList","x":990,"y":288,"group":"49fc2a78df8ad84e","id":"49fc2a99bbff0f43","notes":"Just resets it so you can adjust the array size.","n_o":1,"startVal":[]},{"inputCount":3,"outputCount":1,"name":"Global","behaviorType":"logic.logic.Global","x":1350,"y":64,"group":"49fc2a78df8ad84e","id":"49fd540cb66ca54e","notes":"The finished array.","n_o":1,"tag":"Array:NumberList","version":2,"dataType":3},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-180,"y":480,"group":"","id":"49fdab9042adf84c","startVal":3,"tag":"3x3 grid","roundMode":1}],"links":[{"input_id":"49fc2a78df8ad84ei0","output_id":"49fdab9042adf84co0"},{"input_id":"49fc2a78df8ad84ei1","output_id":"49fdab9042adf84co0"},{"input_id":"49fc2a78df8ad84ei2","output_id":"49fdab9042adf84co0"},{"input_id":"49fc2a99f95c5141i0","output_id":"49fc2a79505c884ao0"},{"input_id":"49fc2a8987bcd241i0","output_id":"49fc2a79505c884ao0"},{"input_id":"49fc2a8987bcd241i1","output_id":"49fc2a7a1321b94eo0"},{"input_id":"49fc2a8987bcd241i2","output_id":"49fc2a7a592f5c48o0"},{"input_id":"49fc2a8b2a3daa4ci0","output_id":"49fc2a8987bcd241o0"},{"input_id":"49fc2a8b2a3daa4ci1","output_id":"49fc2a8987bcd241o0"},{"input_id":"49fc2a8c33169d41i0","output_id":"49fc2a8987bcd241o0"},{"input_id":"49fc2a8b0a200945i0","output_id":"49fc2a8987bcd241o0"},{"input_id":"49fc2a8b0a200945i1","output_id":"49fc2a8987bcd241o0"},{"input_id":"49fc2a8c6f4ba842i1","output_id":"49fc2a8a961bc644o0"},{"input_id":"49fc2a8d0fb4784bi0","output_id":"49fc2a8a961bc644o1"},{"input_id":"49fd540cb66ca54ei0","output_id":"49fc2a8ad95b844eo0"},{"input_id":"49fc2a8a961bc644i0","output_id":"49fc2a8b2a3daa4co0"},{"input_id":"49fc2a8c8bdc284fi0","output_id":"49fc2a8b0a200945o0"},{"input_id":"49fc2a8c7063ff4bi1","output_id":"49fc2a8c8bdc284fo0"},{"input_id":"49fc2a8a961bc644i1","output_id":"49fc2a8c33169d41o0"},{"input_id":"49fc2a8c8bdc284fi1","output_id":"49fc2a8c33169d41o0"},{"input_id":"49fc2a8ad95b844ei1","output_id":"49fc2a8c7063ff4bo0"},{"input_id":"49fc2a8ad95b844ei1","output_id":"49fc2a8c6f4ba842o0"},{"input_id":"49fc2a8ad95b844ei2","output_id":"49fc2a8d0fb4784bo0"},{"input_id":"49fc2a993e7d8049i0","output_id":"49fc2a8d0fb4784bo0"},{"input_id":"49fc2a99bbff0f43i2","output_id":"49fc2a993e7d8049o0"},{"input_id":"49fc2a8ad95b844ei0","output_id":"49fc2a99bbff0f43o0"}]}}}
The system is really simple and optimized, but it uses lists so idk if it’s too complicated for you
I normally don’t suggest lists unless they are already using lists in their code because it takes a little while to learn. Something like tic-tac-toe can be done with mostly number blocks. But yes, lists would be the best way to make board games and puzzles.
My dad and I are making a tic tac toe game in c sharp
We are making so that two bots can play against eachother, mine and his.
I am trying to do more c sharp instead of flowlab but flowlab is just so fun!
I think I’m going to try doing raycasting. Well I think that would work but I don’t know. I want to ray cast to the objects around it and then check if the 2 objects on opposite sides are the same value.
Raycast is good for looking for a single object next to another object, but it’s not so good when you want to scan over several objects at once because it only counts the first object that it hits. But raycasting could work here if you are just looking for the neighbor objects.
yeah I realized that. I also realized that raycasting can’t even detect object values. luckily, I think I’ve come across a great way of solving all this. I’ll check for every object in the game logic code and if an object is spitting out the message that it’s x and all 3 objects are spitting that message out then I can say somebody won. i’m going to give each object a name. Like 1a 1b 1c and 2a 2b and so on and then just check them manually in a separate piece of code for their object values. ez pz lemon squee zee.
There is a message option like “Message last raycasted object” and “reply to last message” that can help objects talk to each other to send values to each other. Depending on where they are spawned, you can tell which ones should send a raycast.