10 iterations of the algorithm with crazy growing crops
Given Eli's young age and the appearance of a weak scepter who would be brought down by a staff, Sabia did not rush to teach him how to use the staff to smash the skull of his enemies quickly and accurately.
"You haven't shown elemental tendencies yet, so it stands to reason that I should teach you some general magic." Sabia paused, then continued, "But I always thought that magic wasn't real magic. β
Eli nodded knowingly.
Universal magic can only be used to aid life, they are generally not used in combat, and the magic that Vile used to make them sleep is one of the most powerful of the general magic. Elemental magic, on the other hand, is usually very destructive, and it also requires a lot of magic from the magician, and some magicians who have talent but not many are even unable to use elemental magic skillfully until death.
But this obviously doesn't happen to Eli, who says Sabia himself has a magic power as big as a dragon.
"Today, I'm going to teach you wood magic. If you're unfortunate enough to not have a wood affinity, then you'll have to learn general magic from me for the time being. β
Eli: I really don't think it's unfortunate not to have the same talent for a giant panda as a wood.
It's also good to be proficient in general magic, Eli thought, and the most basic things have always been the most useful.
However, it seems that the system does not think so.
[Ding-dong, a new mission has been released.] ]
[Quest 2: Learning Magic (1)
Mission Description: I'm reluctant to admit it, but there's no doubt that you're gifted.
Mission Progress: 0%]
Thanks, I don't have to give a system to make me talented.
In all fairness, Eli is a very knowledgeable person, and it's good to have a good family, and it's good to have a golden finger that's not very reliable but still very useful, and if he has a talent for magic, he's going to start a conspiracy theory.
All the seemingly easily available items in life have been secretly marked with a price. Luck is good, of course, but he can't necessarily afford to pay the price behind it.
[Ding Dong, the system solemnly declares that the host's magical talent has nothing to do with the main god and the system.] ]
Independent? Eli raised an eyebrow, it couldn't be that he had a talent for magic before he crossed over, right?
Unaware of Eli's momentary strangeness, Sabia walked to the edge of the test field, raised his staff, and pointed the green shoots with the jewel at the top.
"The Wood Element is the closest to nature of the five basic elements, and a good Wood Mage can easily influence the growth process of plants."
Eli understands that it can both ripen and increase yield, and it can also change traits if it is not even, which is really a necessary skill for farming.
If it weren't for the scarcity of wood magicians, he would have been so high and low that he would have asked Dylan for one to support his farming career.
"What I'm going to teach you today is spawning magic, and the vine you saw yesterday has made some changes on the basis of spawning magic." The people around him seemed to be doing their own thing, but in fact, their eyes were gently glancing this way. Even in such a situation, Sabia still had no scruples in revealing the fact that he had illegally climbed over the wall.
Eli was looking forward to it, it was the first time he had seen elemental magic in action.
Sabia exhaled, and lengthy incantations flowed out of his mouth. Unlike using universal magic, Eli could clearly see a string of green runes swirling up from the circle the size of Sabia's feet. They obediently surround Sabiah, like the most loyal guards.
"Grow."
With a sigh-like command, the runes thuded into tiny dots of light and scattered and fluttered across the test field.
A miracle happened.
The cells divide and differentiate, and the green leaves stretch and grow until they turn dark green. In just a few breaths, the potatoes and sweet potatoes in the test field have grown visibly to the naked eye.
That's the power of magic.
Sabia was a little proud to reap the look of amazement and admiration from his students, but he found that Eli had a strange face at the moment, and he didn't look like he was surprised by his superb magic that gave birth to a field.
Sabia was upset, and he snorted coldly: "Do you have any problems?" β
Eli stopped talking.
The problem is big, not to mention the cool and shameful special effects, who can tell him why the runes are JAVA algorithms?
The recursive algorithm in the basic algorithms of Java, one of the contents of the first lesson, is comparable to the ninety-nine multiplication table of mathematics in the field of the Java language.
Isn't that what the system says about talented? If the elemental magic in this world is all code, then how can he, a former computer science student, be gifted if he is not talented?
"Of course...... Nothing was a problem. Eli said against his will, "Just a little scared." β
Eli even pinched two fingers to show Sabia just how small that little bit really was. But Sabia, apparently uncomforted by this unconvincing reason, blew his beard and glared, and instructed, "Try it now!" β
Eli was stunned, as were the onlookers. Orin, who was hiding behind a stone pillar, involuntarily glanced at the lenkron beside him, and his eyes clearly wrote: Do you magicians learn like this?
Who knew that Lenkron also looked at it with a shocked look in his eyes: did you study like this in a place that your uncle didn't know?
They looked at each other, and after seeing the lord couple behind the flower wall sneaking in and out of the same face, they finally came to a reconciliation - it seemed that it was not their problem, it was the problem of Sabia, the great mage who played his cards unreasonably.
"Maybe you haven't taught me spells yet?" Eli tried to struggle, "It's too long, I don't remember." β
This time it was Sabia's turn to be surprised: "Who told you that the spell needs to be memorized?" β
"Spells are just keys to the elements," Sabia nodded at Eli's forehead with his index finger, "Of course you can cast magic by repeating someone else's spell, but it's not yours." You just need to imagine the effect you want to achieve in your mind and focus your attention. β
"Your magic and talent will allow you to do what you want, and it's just the simplest form of magic."
Sabia nudged Eli on the back.
"Try it now, little master Francis."
Sabia spoke as if he was going around a bend, and Eli was pushed, still a little confused.
Imagine what you're trying to achieve? How can you imagine this?
The little child stood in front of the test field in a daze, trying to imagine the growth of plants, waving the staff that Phiria had used. The result was obvious, he failed.
Sabia stood behind him triumphantly, feeling that he had taught this disrespectful student of magic a good lesson.
Eli, who had gone from the leaves of potatoes and sweet potatoes to sizzling fries and fragrant cheese-baked sweet potatoes, struggled to admit that his imagination might be barren. He may be the stereotypical science student, whose imagination is a younger brother in the face of strong logical thinking.
Wait, Eli has a bold idea, maybe he doesn't need to imagine what a plant looks like at all?
Sabia cleared her throat reservedly, and was about to stop Eli's useless attempt, when she felt the quiet wood element in the air suddenly come alive for a moment.
He looked at Eli's back in disbelief.
The green runes swept through Eli's body in an instant, and even the short staff was wrapped around the air several times.
Unlike the quiet runes that chanted in Sabia, Eli's runes were noticeably more active and irritable, and they kept stretching like vines hanging down from the jungle.
Firia's nails almost dug into Dylan's flesh, but Dylan didn't realize it, his eyes were shining as he looked at his son, and his whole person was full of pride.
Everyone is looking forward to it.
Eli opened his eyes, his originally clear purple eyes slowly encroaching on the silver-green color.
"Grow."
The simple syllables seemed to turn on some wonderful switch, and the vine-like runes pierced the test field one after another without hesitation. They splattered into flying shards like fragile stained glass on contact with the soil, and the sunlight shone brightly over the towering castle.
Like a gem.
Eli's eyes slowly widened, and he had touched some hidden boundary for the first time before this man-made rain of gems.
[Ding Dong, congratulations to the host for the achievement: The Law of Touch, which rewards the number of universal gachasΓ10]
As the system announces, a silvery green crystalline mist sinks into the soil like water. The potatoes and sweet potatoes, which were already very lush, grew like hormones until they reached the size that Eli felt was wrong.
Eli looked at his hand in a daze.
When the professor talks about the basic algorithms of Java, he specifically mentions that if he can use iterative algorithms, he should try not to use recursive algorithms. After all, the iterative algorithm occupies a small space, is not easy to cause stack overflow, and is efficient, and has no disadvantages except that the code is cumbersome and the logic is slightly difficult.
Eli smoked this sentence into his lungs, so he subconsciously replaced recursion with iteration as he went through the code in his head.
Then he used a plus version of the spawning magic.
Iterative algorithms, terrifying.
He tries to turn around and express his shock to Sabia, only to find that Sabia doesn't look much better than himself.
Sabia glared at Eli in frustration, as if he were looking at a monster.
"Uh," Eli tried to smile as well, "what's the problem?" Teacher Sabia. β
After a brief silence, Sabia came back to his senses, and he cleared his throat to say something, but there were no words to sum up his current mood.
An old man and a young man stared at the edge of the test field.
"I have a question, Mr. Sabia." After much deliberation, Eli still threw out this inappropriate question, "If magic changes the traits of edible plants, can plants still be edible?" β
"Changing traits?" Sabia repeated in a daze.
"I mean......"
Eli turned to the side, gesturing at potatoes and sweet potatoes whose leaves were about to grow waist-high.
"They're a little too big."