core-logic

timothypratley 2018-01-09T02:59:36.000145Z

Invalid :refer, var cljs.core.logic/permuteo does not exist --- is this expected? (ClojureScript)

noprompt 2018-01-09T04:02:31.000029Z

@timothypratley are you able to use permuteo without :refer? i.e. logic/permuteo.

reefersleep 2018-01-09T09:35:44.000069Z

I’ve got a hobby project building a Dominion ( https://boardgamegeek.com/boardgame/36218/dominion ) randomizer with a web interface. For those that don’t know Dominion, the purpose of a randomizer is to set up an initial game state by randomly picking 10 piles of cards from those piles available, with a few custom rules occasionally. That task is very simple in and of itself, but I’d like to make it possible for the end user to customize the randomization with certain parameters, like, “less than 5 piles must contain attack cards” and “1 of the piles must be a certain pile” and “more than 2 piles must be victory cards” (and probably more constraints will appear once the possibilities start unfolding 🙂 ). Is core.logic a good fit for something like this?

timothypratley 2018-01-09T15:47:15.000174Z

hi @noprompt 🙂 no, I am unable to use permuteo by qualifying it either.

timothypratley 2018-01-09T15:48:29.000677Z

@reefersleep IMO yes, perfect 🙂

noprompt 2018-01-09T17:42:37.000585Z

@timothypratley sounds like you’ve got a bug report to make! 😉

timothypratley 2018-01-09T17:47:19.000602Z

hehehe okidoki