Hard to be God


In the middle of the week can be difficult.
You run to the washroom and thrown into icy water.
Someone goes into depression, booze or Habr.
In this difficult hour we want to remind you that you're like God.
Writing
 <body>New world</body> 
or
s/I/we/
— almost a God, the architect of the new world.
Good, bad, I don't discuss it.

Any application — the new world. Skype or Tetris Xcode or nonam from Google play — a new world in which you suddenly go.
You leave or stay.

The same thing happens to you created the Universes.

They are laws that are invented you, wittingly or unwittingly.
And your worlds are born and die.

What am I?

About Tetris


Mentioned in vain of Tetris was once popular, but we all left him. The glass is empty and dry.
Remember how many years ago you played it? But is in the youth you did not create a private world of Tetris in C, Pascal or Javasript?

All were fascinated with the process of filling holes with blocks.

As the attainment of skill, the man was fed up. And took pleasure only in the most difficult, adrenaline mode.
To survive at maximum speed. Filled to the brim of the glass. When salvation remains half a second.
In the brain born of shortcuts that should almost simultaneously click. And the figure sank into her bed.
At the printing speed players Tetris caught up with professional typists. 700 characters per minute.

gameplay


Well, get over lyrics. Formalize the game process.
Discarding the conventions, in Tetris there were only 4 buttons. (a)right (b)left, ©twist clockwise (d)twist counter-clockwise.
It is clear that transformation in Tetris, for example, a*c*c = C*a*c = c*c*a is commutative.
That is, the result does not depend on the order of keystrokes.

In simple worlds, equality is true by rearranging (commutative law)
the
a*b = b*a

World of Tetris is simple. I repeat. That's why he quit.

The real world is another. It is very complicated. Although in this, as in Tetris, events A or B change it.
the
 W=A*W;
W=B*W;


Say that the ancient Greeks events A and B are called affinity transformations. I don't know.

Now, for affine transformation of A*B is not equal B*A.

Example? Please.

the
A="We drank wine and had a nice time"
B="I came home to my wife"


Agree that A*B is not that B*A.
Moreover, as a result of rearrangement of the two transformations, the resulting world may differ dramatically.

So where did the players in Tetris? In the three-dimensional glasses, where else, because CS did not yet exist.
In the three-dimensional Tetris A*B not equal B*A.

a Bit of history about the three-dimensional world



If I am not mistaken, three-dimensional Tetris was called BlockOut and it was made back in 1990 for a 286 CPU.
It has six buttons for rotations in three planes and 8 buttons for movement along the two axes X and Y.
The game is eternal.
I know 50 year old guys who bought a computer, only to sometimes remember his youth and play BlockOut.
And they play only in one mode. Glass size 3x3x18. Depth Z = 18. A complex set of figures.
Scored in this game 200 000 points is considered to be the guru.
His three-dimensional thinking jealous Riemann, Hilbert and A. T. Fomenko.

The game has a website, rankings, hall of fame, rules, scoring system, sets of figures and even the source code.

With the advent of the phone I wanted to have this childhood game on your mobile device.
Found in appStore version was downloaded, used and removed immediately.
A glass not of the system. Management is not for gurus. Is this a joke?

Understand that in the fast levels, the figure falls to the bottom for 1.1 second and people need to do 3-5 consecutive taps.
The only multi-rotation takes almost a second.

In short, we must come up with their own.

I have considered four options and tested 3 of them.

a Continuation and result of the second part for geeks BL

Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

March Habrameeting in Kiev

PostgreSQL load testing using JMeter, Yandex.Tank and Overload

Monitoring PostgreSQL with Zabbix