Skip to main content

Search

Get the game time of all the players

  • TAPgiles
    Great answers

    Once you've figured out the best, turn the logic off for that one, and now the second best will be the best of what's left. That sort of thing. I don't know what logic you're using to figure it out, but this is the principle to use.

  • Rabagast

    I wire PL1 and PL2 into a calculator to find lowest time, using "Minimum" The same with PL3 and PL4. Then I wire these two calculators into a new one. Then I find the best time.

  • TAPgiles
    Great answers

    Cool. So after you've got that, you can turn off whatever is sending the lowest time, and that would be ignored for figuring out the next lowest time.

    For that though you'd need to know which of the players actually had the lowest time. So there's another method which will help you with that using exclusive gates. For each player, have an exclusive gate with a specific name--the same name for all the players' ex-gates. Wire the time into the ex-gate's priority, and change the priority to -1000. This will give the ex-gate a higher priority from a lower time, to a precision of 0.001. Use a switch to send a signal into the ex-gate's input to try to open it--but only the gate with the highest priority (lowest time) will open.

    The ex-gate will send a signal from "active" while it's open (player with the lowest time), and will send through the input from its output (giving you the lowest time itself).

    Then turn the switch off for that player and it will be ignored, and the next lowest time ex-gate will open. Etc.

    The tricky part will be making the logic to go through one by one turning off switches and storing the time or whatever you need. But this is generally not an easy problem, so it'll be a bit involved.

  • Rabagast

    Should I use the ex-gate instead of all the calculators to find the lowest time? Or both?

    Another thing I was thinking of, is that Mm will update the calculator in the future, with 10 inputs. Do you think this new calculator can solve the problem? Since I can just wire all the players into each input.

  • TAPgiles
    Great answers

    That would only tell you the min or max value out of those 10. So it wouldn't really help with this.

    Here's a daydream that's coming out sometime, showing different methods of getting the highest/lowest value: https://www.youtube.com/watch?v=V4URIhGJaQI

    And here's the daydream article going into detail on how that works (patreon only): https://www.patreon.com/posts/highest-lowest-55240125

  • Rabagast

    Thank you for the videos. I just took a break for this. It's not very important anyway in my game. Just making a kind of player stats. 😊

Please sign in to leave a comment.