Hi, I'm learning core.async with a game I'm developing. This is a one on one game where players have 5 seconds to play. If only one has played before 5 seconds, he is the winner. If none has played, I randomly choose a winner.
I have 3 channels, player1-channel, player2-channel and timeout-channel. Although I know I can use alts! to detect the timeout like (alts! [player1-channel player2-channel timeout-channel]) I won't be able to detect the case when only 1 player has played. I can't think of a proper way to do this. Any idea ? Thanks -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.