gigasquid / wonderland-clojure-katas Goto Github PK
View Code? Open in Web Editor NEWClojure Katas inspired by Alice in Wonderland
License: Eclipse Public License 1.0
Clojure Katas inspired by Alice in Wonderland
License: Eclipse Public License 1.0
Hi again, @gigasquid, and thanks for the quick fix of the alphabet cipher. ๐ I have encountered a few similarly small issues with the Doublets challenge which I'll try to explain here.
Here's some output from my terminal to illuminate the problem:
expected: (= ["head" "heal" "teal" "tell" "tall" "tail"] (doublets "head" "tail"))
expected: (= ["door boor book look lock"] (doublets "door" "lock"))
The first one expects a vector of single-word strings while the second one (and a few more) expect a vector of one string containing several words. I imagine the first one is the intended one, but as long as they agree on the format it should be fine.
When I run the tests (after making changes like the one I described above) I'm unable to make some of the connections made in the test cases. It seems the word list is simply missing some words:
expected: (= ["head" "heal" "teal" "tell" "tall" "tail"] (doublets "head" "tail"))
actual: (not (= ["head" "heal" "teal" "tell" "tall" "tail"] ("head" "heal" "teal" "tell" ... "tail")))
expected: (= ["door" "boor" "book" "look" "lock"] (doublets "door" "lock"))
actual: (not (= ["door" "boor" "book" "look" "lock"] ("door" "boor" ... "lock")))
My code's inserting '...
when it fails to find a matching and, indeed, I can't seem to find tall
or book
in the word list.
There are all currently 1.6
My implementation seems to be finding another solution that is seemingly valid and of the same length. I'm sure there are other solutions as well. I think the tests should be rewritten to accept more than just the hardcoded solution.
[[#{:you :fox :goose :corn} #{:boat} #{}]
[#{:fox :corn} #{:you :boat :goose} #{}]
[#{:fox :corn} #{:boat} #{:you :goose}]
[#{:fox :corn} #{:you :boat} #{:goose}]
[#{:you :fox :corn} #{:boat} #{:goose}]
[#{:corn} #{:you :fox :boat} #{:goose}]
[#{:corn} #{:boat} #{:you :fox :goose}]
[#{:corn} #{:you :boat :goose} #{:fox}]
[#{:you :goose :corn} #{:boat} #{:fox}]
[#{:goose} #{:you :boat :corn} #{:fox}]
[#{:goose} #{:boat} #{:you :fox :corn}]
[#{:goose} #{:you :boat} #{:fox :corn}]
[#{:you :goose} #{:boat} #{:fox :corn}]
[#{} #{:you :boat :goose} #{:fox :corn}]
[#{} #{:boat} #{:you :fox :goose :corn}]]
Hello,
I just wanted to check if I should take in consideration the suits in consideration when there is a tie considering the ranks.
Both the war games rules and the example scenario state that we should not consider the suits. However, there are some tests that expect that the round results should consider the suits.
If we should not take the suits into account, I believe some of the tests need to be rewritten (I can submit a PR with changes).
Thanks!
Hi, @gigasquid, and thanks for the cool project.
When encoding meetmebythetree
under key scones
, shouldn't the encoding be egsgqwtahuiljgs
--that is, the sequence shifted one further? Every time I do it by either hand or computation this is what I end up with. If this is in fact an off-by-one error it's present for the decryption test as well.
These katas are designed as a learning resource for Clojure and should align with the latest recommended way of getting started with Clojure.
In the game, if you have a tie, you don't resolve based on suit.
You deal three more cards from each hand and then 1 more that fights the war again. All cards go to the winner. If there is another tie, 3 more cards and fight again.
The main issue with the current rules is whomever receives the Ace of Hearts wins the game, as they can never lose the game as they can never run out of cards (nothing evers beats the ace of hearts)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.