Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
My bad, I didn't understand the tagging system. I was just making a suggestion to give a more comprehensive test case with the puzzle.
This comment is hidden because it contains spoiler information about the solution
I struggled with this one. So, I have like a million test cases from troubleshooting. The thing that tripped me up here, was the language used to refer to the top/front/back/bottom/left/right of the "stack". So the lesson learned is that new items are generally placed on the top/front/right_side of the stack, old items are on bottom/back/left_side of the stack.
The the good news is my solution ended up being super friendly to being tested. I consider these tests to be part of my solution, so I'll post those here:
#My TDD test cases:
This comment is hidden because it contains spoiler information about the solution
Thumbs up, This was a fun puzzle! I feel like a genious right now for solving this :D Probably not a genious, but this pushed my skill limits as a programmer. I approve.
Nice work putting this together.
edit: I posted my notes, test cases, and thought process with my solution. I wrote this mostly for myself to help digest the work. But I imagine it might be useful to others too.
This was a fun kata! I put together this colossal class. When I finally got to the last method that would actually solve the puzzle, that was exciting.
So, cheers!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I think you're inflicting some unnecessary sufferring with this line:
str(a) == '(1,2,3)'
The default tuple for python has spaces after the
,
. So it would be(1, 2, 3)
.It's the difference of using the built in
tuple()
function and writing it out.This comment is hidden because it contains spoiler information about the solution
Since it checks for multiple words and punctuation: