diff options
author | dozens | 2024-06-06 22:49:52 -0600 |
---|---|---|
committer | dozens | 2024-06-06 22:49:52 -0600 |
commit | f985dc4e5c9fdec06436c21440c3dc7245369847 (patch) | |
tree | 336d7287757c54a66824ed03c7531f23122a33f2 /lib/kvflip.fnl | |
parent | 7776b2011a2585723078b275c838fd7332488d76 (diff) |
feat: add moving phase
also moves `moves` into the game object and moves updating `moves` to game:update
Diffstat (limited to 'lib/kvflip.fnl')
-rw-r--r-- | lib/kvflip.fnl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/kvflip.fnl b/lib/kvflip.fnl new file mode 100644 index 0000000..25fc222 --- /dev/null +++ b/lib/kvflip.fnl @@ -0,0 +1,6 @@ +(fn kvflip [t] + "takes a table of {key value} and returns a table of {value key}" + (collect [k v (pairs t)] (values v k))) + +{: kvflip} + |