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.
Thanks. My bad.
Read the description once again ;)
So, after reading the details of this kata I was unable to understand one thing.
For example, I have an input "111". I have no way to distinguish a dot from a dash in this case. What do I do in this situation?
I would recommend looking through inputs into "opp" function.
In c# test
expected
andbut was
answers are flipped (at least for isCheck).I just found the same error, Still not fixed :(
8 ♛ ♚
7
6
5
4 ♙ ♛
3 ♙
2 ♙ ♙ ♙
1 ♕ ♔ ♗ ♘ ♖
[{'y': 4, 'owner': 0, 'piece': 'pawn', 'x': 6}, {'y': 5, 'owner': 0, 'piece': 'pawn', 'x': 5}, {'y': 6, 'owner': 0, 'piece': 'pawn', 'x': 3}, {'y': 6, 'owner': 0, 'piece': 'pawn', 'x': 4}, {'y': 6, 'owner': 0, 'piece': 'pawn', 'x': 7}, {'y': 7, 'owner': 0, 'piece': 'queen', 'x': 3}, {'y': 7, 'owner': 0, 'piece': 'king', 'x': 4}, {'y': 7, 'owner': 0, 'piece': 'bishop', 'x': 5}, {'y': 7, 'owner': 0, 'piece': 'knight', 'x': 6}, {'y': 7, 'owner': 0, 'piece': 'rook', 'x': 7}, {'prevX': 3, 'y': 4, 'piece': 'queen', 'x': 7, 'owner': 1, 'prevY': 0}, {'y': 0, 'owner': 1, 'piece': 'king', 'x': 4}] 1
A B C D E F G H
8 ♛ ♚
7
6
5
4 ♙ ♛
3 ♙
2 ♙ ♙ ♙
1 ♕ ♔ ♗ ♘ ♖
How is it 1's turn if 1's queen was just moved (presence of prevX and prevY)??The test just above this one makes more sense as it is almost the same test except it is 0's turn but in this test the placement is exactly same except it is 1's turn which is not logical because 1's queen was just moved.Plus white king is being checked in it but it shows that it is black's turn which is an impossible situation.
Thanks.
It has been fixed now. There will be no more random cases in C# with "-1" as the coeficent. It will show "-".
What language were you using? C#? It states in the description that if a = -1 a '-' will be placed, so this shouldn't happen. I will look at it.
Expected: True
But was: False
Very informative
I got stuck on random test.
So in test the input was
(-1j+26)^3
, but in other test the input was(-n-12)^5
.Is it ok that there may be (-1) or just (-)?
This kata should block System.Reflection, but no. Fix please.
Okay, my fault.
As it is showed in instructictions the input should be separated with '/' and then build up.
GenerateBC("mysite.com/pictures/holidays.html", " : ") == '<a href="/">HOME</a> : <a href="/pictures/">PICTURES</a> : <span class="active">HOLIDAYS</span>';
.Doing by this strategy:
GenerateBC("twitter.de/wanted/or-uber-uber-a-from-biotechnology-for/funny.php#people?sortBy=year", ";") == <a href="/">HOME</a>;<a href="/wanted/">WANTED</a>;<a href="/or-uber-uber-a-from-biotechnology-for/">UUB</a>;<span class="active">FUNNY</span>
.But Kata throws exception that answer should look like this
<a href="/">HOME</a>;<a href="/wanted/">WANTED</a>;<a href="/wanted/or-uber-uber-a-from-biotechnology-for/">UUB</a>;<span class="active">FUNNY</span>
.Loading more items...