I want to make an interface that will allow you to set a chain of events (namely races) using dependencies. Each race can have a YES/NO case (according to whether such a race took place or not) and no YES/NO cases at all. I attached a screenshot of the logic of such races. It is also worth considering that there can be countless such races. Perhaps someone will have interesting ideas for implementing such a sequence using a clear interface. It can be only for desktop.
P.S. This is my first request on UXstackexchange, if you need more information, feel free to drop a line