📜 ⬆️ ⬇️

Hard to be god


In the middle of the week it can be difficult
You run to the sink and throw cold water into your eyes.
Someone goes into anguish, binge or Habr.
In this difficult hour I want to remind you that you are like God.
Writing
<body> </body> 
or
 s/// 
- almost God, the architect of the new world.
Good, bad, I do not discuss it.

Any application - a new world. Skype or Tetris, Xcode or noneym from GooglePlay - a new world in which you suddenly enter.
You leave him or you live.

The same thing happens with the Universes created by you.
')
They have laws that you invented, voluntarily or unwittingly.
And like people, your worlds are born and die.

Why am I doing this?

About tetris


Tetris mentioned in vain was once popular, but we all left it. The glass is empty and dry.
Remember how many years ago you played it? But didn’t you create your own Tetris world in C, Pascal or Javasript in your youth?

Everyone was fascinated by the process of filling holes with cubes.

As far as comprehending the mastery, the man got fed up. And I enjoyed it only in the most complex, adrenaline mode.
Survive at maximum speed. On the glass filled to the brim. When the rescue is half a second.
Key combinations were born in the brain, which should be pressed almost simultaneously. And the figure fell into the box intended for her.
In terms of printing speed, tetris players caught up with professional typists. 700 characters per minute.

Game process


Okay, let's end with the lyrics. We formalize the gameplay.
Discarding conventions, there were only 4 buttons in Tetris. (a) right, (b) left, © turn clockwise, (d) turn counterclockwise.
It is clear that transformations in Tetris, for example, a * c * c = c * a * c = c * c * a are commutative.
That is, the result does not depend on the order of keystrokes.

It is in the simple worlds that the equality under permutation is true (commutative law)
 a*b = b*a 

Tetris world is simple. I repeat. That's why everyone abandoned him.

The real world is different. He is complicated. Although in it, as in Tetris, events A or B occur, changing it.
  W=A*W; W=B*W; 


It is said that the ancient Greeks called events A and B affine transformations. I do not know, not sure.

So, for affine transformations from the big world A * B is not equal to B * A.

Example? You are welcome.

 A="      " B="    " 


Agree that A * B is not at all like B * A.
Moreover, as a result of the rearrangement of two transformations, the resulting world can differ catastrophically.

So where did the tetris players go? In the three-dimensional glass, where else, because CS then was not there.
And in the three-dimensional tetris A * B is not equal to B * A.

A little history about the three-dimensional world



If I am not mistaken, the three-dimensional Tetris was called BlockOut and was made back in 1990 for a 286 processor.
There are six buttons for rotation in three planes and 8 buttons for movement along two axes X and Y.
The game is eternal.
I know 50-year-olds who bought computers, only to sometimes remember their youth and play BlockOut.
And they play only in one mode. Glass size 3x3x18. The depth along the axis Z = 18. A complex set of figures.
A player with 200,000 points is considered a guru.
His three-dimensional thinking is envied by Riemann, Hilbert and AT Fomenko.

The game itself has a website, ratings, halls of fame, rules, a scoring system, sets of pieces, and even source code.

With the advent of the phone, I wanted to have this childhood game on a mobile device.
The version found in the appStore was downloaded, used and immediately deleted.
A glass of the wrong system. Management is not for the guru. Management is terrible.

Understand that at fast levels the figure falls to the bottom in 1.1 seconds and the person must have time to do 3-5 consecutive clicks.
And the sequence can not be changed! And he is offered a multitouch to twist the figure in the XY plane.
On only one multitouch rotation takes almost a second.

In short, you have to invent your own.

I considered four options and checked 3 of them.

Continuation and result in the second part for geeks BL

Source: https://habr.com/ru/post/149732/


All Articles