@vatsan just saw your solution I wanted my solution to be like yours but don't know how I end up writing this..
and also why the hell I m using mk = True when i could have just use continue..instead.... lol xD thanks anyways...
1st guy to put card in middle is Flash then turtle will put card in middle if it matches with flash card whoever says snap first wins( its always going to be flash) and all the card in middle will be given to flash (appended in flash pile hence now middle has been reset ie no card in middle) if flash and turtle card does'nt matches then flash is going to put card on top of last card in middle if it still doesn't matches turtle will put the card..nd so on..
I can't see any snap here, but it expects 2. How come?
Test.assertEquals(snap([ '3','K','5','A','5','6','7','J','7','9','10','Q','Q','6','8','7','4','J','8','9','K','J','10','4','K','4' ],
[ '2','8','9','Q','A','K','6','3','J','2','4','3','3','8','A','2','6','7','9','10','A','5','Q','10','2','5' ]),2)
Once a kata published , it's in Beta Phase when you can raise an issueconcerning lack of test or random cases or contradicted description points, But suggestions are labeled when you have an ideation that make it easier to understand the description or posting kata's translations in other languages , these could be posted in the discourse section like here
But you can contibute in a kata in a different way while its in Beta Process or Phase , Once you hit 6000 Points of honor , then you have the ability to modify other's kata's on your own , also Approving Other's katas is available on that level
Hope that Helps Piotr
Happy to follow you Bro .. also there is a Section , Where you can post your question under the right label .. Wish you all the best Piotr On/Off CW .. Regards .. Zizou
.
..
@vatsan just saw your solution I wanted my solution to be like yours but don't know how I end up writing this..
and also why the hell I m using mk = True when i could have just use continue..instead.... lol xD thanks anyways...
yeah thanx @vatsan
--delete--ignore
1st guy to put card in middle is Flash then turtle will put card in middle if it matches with flash card whoever says snap first wins( its always going to be flash) and all the card in middle will be given to flash (appended in flash pile hence now middle has been reset ie no card in middle) if flash and turtle card does'nt matches then flash is going to put card on top of last card in middle if it still doesn't matches turtle will put the card..nd so on..
I can't see any snap here, but it expects 2. How come?
Test.assertEquals(snap([ '3','K','5','A','5','6','7','J','7','9','10','Q','Q','6','8','7','4','J','8','9','K','J','10','4','K','4' ],
[ '2','8','9','Q','A','K','6','3','J','2','4','3','3','8','A','2','6','7','9','10','A','5','Q','10','2','5' ]),2)
@fatherJS .. Well
Hi, can anyone tell me how to contribute to the kata, e.g.: correct translations or misspellings?
That or he gets paid by lines of code.
I specially like the
break
after thereturn true
line... xDIs this a joke ;-)?
What does span as argument mean? Please give me an example...