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.
:D hahaha wow
cool
Damn mutable defaults are weird..
Sorry yeah i made that mistake. Fixed now. Thanks!
I don't know but pretty sure thats not the case. Just now checked that base is everywhere bigger than 0 in the fixed tests and in the random tests too.
For you to check the random tests:
That is the function i create random integers with.
Its used like this to create base b:
or for bigger numbers
So b should'nt be 0. Please correct if you find a mistake.
Does it work in your console for a base > 36? I.e 50?
To be sure you understood correctly: one call of
... It has to be able to differ in execution time each time its called based on the message in the buffer. The decoder will execute
beep
is equivalent to one-
or.
orbeep
multiple times per message. The decoder will continue to callbeep
until one execution ofbeep
takes a very small (no) time to excecute. Then the times measured will be translated back into the message.I worded it as
I think this resolves the issue. If I made a mistake or have a recommendation how to improve this please let me know. I thought about removing the
seed
altogether and just have the function return a generator which always starts at the initial value of the given sequence, but I like it more like this. What is your opinion?.
done :)
ill write more test cases. but i have loop cases ^^
.
You can assume that the seed is part of the sequence since I generate it from a known LFSR. There will be no seeds outside that sequence. I will only test legit seeds. I first sample a random seed index (meaning after the inital seed of the sequence) and then generate the seed once with the same lsfr that generated the initial sequence. And predicting the future elements of the sequence is the whole point of this kata.
Maybe we mean different
seeds
I am talking about the seed given to the generator not the initial seed of the sequence. If this resolves the issue let me know and ill resolve it. Also if you have a better wording for the description to make clear what I mean please let me know :)Regarding the other issue with the test seeds being
0
very often: I change the index if a zero is detected to a random lower index in 50% of the cases.oh damn :D fixed!
Loading more items...