What about:
safe-cell? (as described)
reveal-safe-cells (as existing)
(defn reveal-safe-cells-if-safe-cell [gs]
(if (safe-cell? gs)
(reveal-safe-cells gs)
gs))
and elsewhere
(-> gs
...
...
(reveal-safe-cells-if-safe-cell)
...
...)
--
You received this message because you
I wrote packthread to avoid needing threading counterparts of a bunch of
control forms - it rewrites threading through control forms.
https://github.com/maitria/packthread
It doesn't (yet) solve when you need the threaded value in the middle of a
threading form. I've had some thoughts about
On 25 April 2016 at 21:03, Rafał Cieślak wrote:
> Hi,
>
> I'm writing a turn-based game and one of the biggest functions is the one
> which handles player moves. It receives the current game state (a map) and
> the index of the cell that the player clicked on (an integer).
>
Hi,
I'm writing a turn-based game and one of the biggest functions is the one
which handles player moves. It receives the current game state (a map) and
the index of the cell that the player clicked on (an integer).
It has to make a couple of decisions based on the game state. So far I just