Read an Excerpt
CHAPTER 1 THE CODE CHALLENGE Almost every student group in the computer class was frustrated. Yet there was a strong feeling of competition. They all wanted to be the first to solve the Code Challenge, but no one could crack it. Not even Asha and Baz could figure it out. And they were the most creative and smartest pair in the class. THE CODE CHALLENGE: Create a computer code that tells a virtual frog how to get from the start point to the finish point. The only way the frog can cross the water is by jumping on different-sized logs. But be careful! Each row of logs floats in different directions. If the frog misses a log, SPLASH! It falls in the water and it’s game over. Project partners took turns dragging and dropping code blocks from the coding menu into the code box. The code blocks: • Hop Forward • Hop Backward • Hop Right • Hop Left There were sounds of frustrated kids and game over sounds buzzing throughout the classroom. GAME OVER. “NO!” said a boy. GAME OVER. “What are we doing wrong?” asked a girl. GAME OVER. “Not fair,” moaned another boy. “This frog is broken,” said the boy sitting at the computer next to Asha and Baz. “You aren’t doing it right!” growled his project partner. The boys elbowed each other in anger. Asha and Baz felt discouraged too. They could not figure out the right code to guide their frog across the logs. “What if we make all the code blocks Hop Forward blocks?” Asha suggested. “OK. Let’s try,” said Baz. He felt a bit sad. Usually he and his best friend did really well on projects. He dragged and dropped Hop Forward blocks into the code box. Baz pressed the Try button at the bottom of the screen. They both crossed their fingers and held their breath. Their frog moved forward from the bottom of the screen onto a log. Good! Then it hopped onto another log. Very Good! And then another. Excellent! Baz and Asha started to feel hopeful. On the next Hop Forward block, there was no log in front of their frog. SPLASH! GAME OVER. “Come on!” Baz hit the desk with his fist. “Ha ha,” mocked the boy sitting beside them. “Have Baz the Brain and Asha the Amazing failed?” “Be quiet!” snapped Asha. The boy’s teasing made her jaw go tight and her heart pound. At that moment, Ms. Wilson, their teacher, walked by their computer. “No name calling,” Ms. Wilson said looking straight at the boy. He shrunk down in his chair. “What if we fail?” Baz asked Ms. Wilson. “What if you succeed?” replied Ms. Wilson. She patted him on his shoulder. The encouraging touch made Baz feel a little better. “Ms. Wilson, can you give us a hint on how to code the frog?” asked Asha. She hoped their teacher would take pity on them. “Here’s a good hint,” Ms. Wilson said loudly. Asha and Baz sat up in their chairs to hear. The boy next to them straightened up as well. “Don’t give up!” said Ms. Wilson. The class groaned. They had hoped their teacher was going to give them a real hint on how to code the frog. “You got this!” she cheered the class on as she continued walking from group to group. Baz looked at the screen. The computer code was like a puzzle, and he and Asha needed to fit the pieces together. He was usually so good at puzzles. “What if we waited for all the logs to line up?” Baz suggested. “Then, there would be one straight path from start to finish.” They both leaned in and watched the screen for all the logs to line up. They waited one minute. Two minutes. Three minutes. The logs were different sizes and floated in different directions. Therefore, they never all lined up at the same time. “I give up!” Asha slapped her forehead and shook her head. “We are going to fail.” She felt gloomy. Just then, the recess bell rang. “OK, everyone out for fresh air,” Ms. Wilson called to the class. “You can come back to the Code Challenge after recess.” “Noooo,” groaned the class. Everyone was fed up with the Code Challenge. “Grab the magic stick,” Baz whispered to Asha. “It won’t be any help,” Asha grumbled. She felt defeated. But she went to her backpack and took out the magic stick anyway. It had been a helpful tool when brainstorming solutions to tough class projects before. They walked out the computer lab door, down the hallway, and out the back door to the schoolyard. Once outside, they broke into a run and raced to the other end of the play- ground where the grass met the sand. Asha got there first because she was the faster runner, but Baz was just behind her. “I don’t want to do coding anymore. I give up. It’s too hard,” she said. “I can’t believe we haven’t figured it out,” said Baz. It was really bugging him that they couldn’t get the frog to the finish point. “Maybe we just aren’t smart enough,” whispered Asha. Baz pointed to the magic stick in Asha’s hand. “You remember what that does, right?” he asked. They had found the stick in the schoolyard. But it wasn’t the sort of stick that just fell off a tree. This stick was polished and beautiful. And it had a strange wavy shape. It was a dark chocolate color at the bottom that flowed into a honey color at the top. This was no ordinary schoolyard stick. This stick was magic. The last time they drew in the sand with it, they had been transported to 1957. There they met Mary Sherman Morgan and learned about rocket power. Baz hoped it would do something similar this time. “Draw the code blocks in the sand, Asha,” he instructed. “Maybe the magic stick will help us solve the code.” Asha bent down to the sand and drew a big rectangle. Inside of it, she drew the blocks of code. “Let’s step inside,” Baz said to Asha. “But stay close,” he added with a bit of worry in his voice. Asha and Baz stepped inside the code drawing. Asha crouched down and touched the magic stick to the sand. “Code,” she said. In that exact moment, the south wind blew in and swept the sand up into a gentle mini-tornado. The tornado swirled around them, and in an instant, they traveled through space and time. “Magic,” said Baz. “Look,” Asha said pointing down to the sand. “The drawing is gone.” The code drawing had disappeared. Written in its place was a name and a year: HEDY LAMARR. 1941.