Chapter 31: Magical Programming

"I'm sorry, I didn't think it through. ”

Looking at the look of loss on Hermione's face, Carl said apologetically.

He also realized that programming is like a book from heaven to people who have no foundation.

He wanted to make an analogy, but he didn't expect it to become more complicated.

"Well, I'll give you a brief demonstration, and you can comprehend the spirit. ”

With that, Carl waved his wand, and a white card appeared out of thin air.

"The so-called combinatorial metamorphosis ......"

As he spoke, Karl pointed at the white card he had just summoned with his wand and muttered a sentence in his mouth.

He had recited the incantation so that Hermione could understand what kind of magic he was using.

Immediately afterward, the card began to change rapidly, eventually turning into a rat and starting to jump around in place.

Hermione's face was immediately amazed, she now kind of understood why Professor McGonagall always said that Carl was very talented at Transfiguration.

With such an easy deformation, it is estimated that even many senior students can't do it.

But that's just the beginning.

"It's a general transfiguration. Karl said, "And then ......"

He held the rat's tail with his hand and muttered it for several minutes.

As the incantation was chanted, the rat began to rapidly shapeshift, eventually turning into a clothed man holding a cane and a top hat standing vertically...... Mouse.

Just when Hermione thought that was the end of it, the mouse suddenly leaned on crutches, took off his top hat, bowed to Hermione, and said, "Hats off, Lovely Miss." ”

After saying that, he squeezed his eyes at Hermione.

Hermione looked at it in a daze for a long time.

Then, her mouth gradually opened and she was finally able to swallow an egg.

She looked at Carl in disbelief, "Carl, this is very, very, very, very unbelievable!"

Hermione was knowledgeable, and the mouse in the back looked more clothed than the mouse in front, moving, talking, saluting, and a bit human-like.

But because of this, she clearly knows how difficult it is to achieve the latter step.

In order for Hermione to hear clearly, Carl recited the incantation very slowly, and Hermione heard every incantation clearly.

Some of these magics she had seen in books, some of which she had not.

But she could never have imagined that this series of spells could be combined in such a way.

Seeing Hermione's expression, Carl nodded secretly in his heart, he understood that the girl really understood something.

So, he explained: "Every anthropomorphic movement of this mouse, the look of the eyes, including the way of speaking, is a magic, although I recited some of the spells just now, but some of the spells are more complicated, so I replaced them with silent spells, so I omitted a lot of steps to recite the mantras." ”

"In general, there are probably more than a hundred spell effects on this mouse. ”

Giving Hermione a moment to digest, Karl continued: "These more than 100 spells, there can be no errors in the order of each other, nor can there be an advance or lag in the time effect, it must be perfectly coordinated, I call this series of magic combinations a magic function. ”

With that, Carl said a few more words to the mouse on the table, and then the mouse turned back into a card and floated in front of him.

"Just like that, I encapsulated this magic function in a spell on this card, and set it to trigger only when the user plays the card and lands on the corresponding table, like this......"

Carl waved his wand, and a circular dune slowly rose on the gravel beach between him and Hermione, like a small round table.

Karl pointed to the table and said a few incantations, then he threw the white cards back on the table.

Then, in Hermione's eyes, the card turned into the same mouse from before.

"Hats off to you, lovely young lady. ”

Carl nodded with satisfaction, and said, "Of course, there are still some messy details that need attention, and I won't explain them all, because there are too many of them." ”

In the end, Carl concluded, "I call this whole process of casting spells, and of course you can call it combinatorial transfiguration, but I prefer to call it magical programming. ”

After speaking, Carl looked at the girl beside him in a daze and asked, "Got it?"

Hermione nodded, and shook her head again.

"Uh...... Do you understand or not?" Karl said inexplicably.

Hermione didn't answer, her eyes fixed on the mouse on the table.

It took another long time before he finally looked up at Carl.

She looked Karl in the eye and said, "Carl, tell me more about this programming, no, this magic programming." ”

"Okay. ”

Carl smiled and nodded.