Just did Challenge 13 in 48 blocks.
How hard was it to use so many math blocks?
You guys are Really Awesome.
Today’s challenges have been updated. Check them out.
So here are my blocks for Challenge 13 ( a bit late )
And here are the sources for Haversine formula:
https://www.movable-type.co.uk/scripts/latlong.html
But I was unable to solve Challenge 14.
So if anyone had solved Challenge 14 I would like to see it.
Today’s challenges are out! Mmm, pretty nutty ones.
I made something similar, although a KodeJam implementation would be more streamlined. Still, this might give you an idea of the basic working.
I prefer to use index (or sometimes iDex) variable instead of index in list
because a repetition of the same value may break the indices.
Today’s colorful challenges are out!
What about the resolution challenge? Many people are waiting for this solution. Although I think there is no solution without using add-ons.
Anything can be solved with Blockly, given enough computational time. The major issue usually arises in competing against time. You only have around 5 seconds at a stretch to run a computation on the UI thread before hitting an ANR. Therefore it is a valid choice to make a procedure that iterates over a loop n times before saving it’s progress to a global variable, starting a timer, and terminating itself. When the timer fires (all parameters for the timer should be provided by the core procedure), it will again call the procedure, with the values from the global variable as the new parameters. This will be repeated until the desired result is obtained.
The Clock component is crucial here, and is allowed.
Today’s challenges are out! And the best part is that they have been updated on time.
Did number #21. Combine lists. (39 blocks).
Actually it’s Franck who created that challenge, so, he might be able to help you out with this.
@Franck_G28?
Yes you are right.
a b in morse code will be .- -...
So one space is equal to five spaces in morse code.
Thank you.
Today’s challenges are live! Let’s do some mathematics.
Result:
a,1,b,2,c,3,d,4,e,5,f,6,g,7
Watch that the , are only between the values. That’s why i have the if then else.
Challenge #23 ready. 11 blocks.
Calculation resolution using iteration and timer?
How? Because I’m either stupid or I don’t understand something,.
The challenge was a long time ago. I would like a specific solution.
My two ideas look like this:
- Make a database of all world phones. Read the model and select the saved resolution from the table.
- Write the script to a webviewer that reads the correct resolution.
Although there is a third way. You can write your own extension …
If there is any other way, please show.
My Timer example was to show how time consuming tasks can be executed on Blockly. As for the challenge in question, you can use the Screen1 properties to obtain the display dimensions in DP.