Announcing KodeJam 2k19!

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.

4 Likes

Challenge #23 ready. 11 blocks.

4 Likes

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:

  1. Make a database of all world phones. Read the model and select the saved resolution from the table.
  2. 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.

1 Like

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.

1 Like

Which specifically?

1 Like

Screen1.Width and Screen1.Height.

1 Like

Ok, now write how to get real resolution from these values.

1 Like

I have something for you @Shreyash

I think today is the twelfth day :sweat_smile:

3 Likes

That is your real solution. There is no such thing as “native resolution” from the perspective of a single app. It only gets the Display Independent Pixel (DiP or DP), and that is what matters.

2 Likes

Me too! :smile:
Challenge #23 @ 11 blocks only! :star_struck:

Edit : Challenge #24 @ 9 blocks… :star_struck:

3 Likes

Oops! Fixed. :sweat_smile:

3 Likes

The challenge was to determine the display resolution of the device.
How can you determine this resolution from what you wrote?
I keep asking about the same. This is a simple question. How to do it?

How to determine the display resolution as it was written in the challenge?

2 Likes

Please show this solution to us,
I am waiting curiously since the question was posted… :sweat_smile:

I think @Shreyash could solve this…

1 Like

Just completed both challenges
Challenge 23 :- 21 blocks
Challenge 24:- 6 blocks
:grin:

4 Likes

Hi
Can you tell me the challenge number of resolution challenge?

2 Likes

:man_shrugging:
I think it should be 5 or 6 (maybe 4) …

1 Like

Thank you.
And here are my blocks for Challenge xyz (screen resolution)

where x is height*width like 1080*720

3 Likes

Everything’s fine, but where to get X and Y?

1 Like

x is the input
but i don’t know where is y

1 Like

That’s what it’s still about. There is nowhere.
Therefore, this challenge cannot be solved.

1 Like