From f985dc4e5c9fdec06436c21440c3dc7245369847 Mon Sep 17 00:00:00 2001 From: dozens Date: Thu, 6 Jun 2024 22:49:52 -0600 Subject: feat: add moving phase also moves `moves` into the game object and moves updating `moves` to game:update --- lib/kvflip.fnl | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lib/kvflip.fnl (limited to 'lib/kvflip.fnl') 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} + -- cgit 1.4.1-2-gfad0