Pickle and the Boolean Logic Baby Gate

Pickle liked to play in the playroom. He liked to build with blocks and drive trains and make race cars out of Duplos.

Baby Pickle liked to play with blocks and trains and Duplos too, but Pickle did not like it when Baby Pickle would knock down his buildings and break apart his train tracks and put extra Duplos on his Duplo race car where they did not belong.

“I will get a gate,” said Pickle, “to keep Baby Pickle out when I want him to stay out and only let him come in when I want him to come in.

Pickle went to the hardware store and bought a gate with a custom filter function. He took it home and set it up in the door of the playroom. He put in a filter function that said, “If x equals Pickle then x can go through.”

When Pickle went up to the gate, the gate put Pickle into the function as x and thought, “If Pickle equals Pickle, then Pickle can go through. Pickle does equal Pickle so Pickle can go through.” So the gate let Pickle go into the playroom.

Pickle started to build a big castle out of blocks. Then Baby Pickle came over to the gate to see what Pickle was doing. The gate put Baby Pickle into the filter function as x and thought, “If Baby Pickle equals Pickle, then Baby Pickle can go through. But Baby Pickle is not equal to Pickle so Baby Pickle cannot go through.” The gate did not let Baby Pickle go into the playroom so Baby Pickle was sad. He wanted to play with Pickle but he just had to watch from the outside.

Then three bunnies came into Pickle’s house. “Ooh, bunnies!” Pickle thought. “I want to play with those bunnies so I will change the filter function to let them come through.” Pickle added a condition to the filter function so it said, “If x equals Pickle OR x equals a bunny then x can go through.”

As soon as a bunny came over to the gate, the gate put the bunny in as x and thought, “If a bunny equals Pickle OR a bunny equals a bunny, then the bunny can go through. A bunny does not equal Pickle but a bunny does equal a bunny, so the bunny can go through.”

The bunny hopped over to Pickle’s castle and went inside. The bunny was very careful not to knock over any of the blocks. Pickle was happy to see a bunny inside his castle. He started to build a wall around the castle. The bunny jumped over the wall and did not knock it down.

Then Pickle heard the doorbell ring. “Who’s there?” he asked.

“It’s Blaze,” said Blaze.

“Come in, Blaze,” said Pickle. “Come look at my castle.”

Blaze came over to the gate and the gate put him in as x in the filter function: “If Blaze equals Pickle OR Blaze equals a bunny, then Blaze can come through.” Blaze did not equal Pickle and Blaze did not equal a bunny so the gate did not let him come through.

“I can’t get in,” said Blaze.

“Oh,” said Pickle, “I will have to update the function.” Pickle changed the function so it said, “If x equals Pickle OR x equals a bunny OR x equals another monster truck then x can come through.”

Now Blaze could come through the gate because he was a monster truck. He and Pickle started to build a train track. They put all the track pieces together into one long train track. When they were done, they built some Duplo race cars so they could have a race between the train and the race cars.

Baby Pickle watched them through the gate. He did not want to be outside by himself. He wanted to come in and play. Baby Pickle tried again to go through the gate and the gate put him into the filter function as x: “If Baby Pickle equals Pickle OR Baby Pickle equals a bunny OR Baby Pickle equals another monster truck, then Baby Pickle can come through.” Well Baby Pickle did not equal Pickle or a bunny but he did equal another monster truck. The gate let him come through into the playroom.

Baby Pickle saw a big red Duplo so he picked it up and tried to stick it on the back of Pickle’s race car.

“No, Baby Pickle!” cried Pickle. “That’s not where that piece belongs.”

Then Baby Pickle picked up one end of the long train track and shook it around. Pieces flew off the end and Baby Pickle laughed.

“No, no, no!” cried Blaze. “Don’t take apart our train track, Baby Pickle.”

Then Baby Pickle went over to the castle and tried to go inside but he was too big to fit in there. He knocked down the blocks that were holding up the roof and the whole castle fell down.

“No, no, no, Baby Pickle!” cried Pickle. “Don’t knock over my castle. Help me put it back together.”

Baby Pickle brought a block and gave it to Pickle and they put the castle back together.

And that’s the story of Pickle and the Boolean Logic Baby Gate.

πŸŒ…πŸ€£πŸ˜­πŸ₯«πŸ‘πŸ₯’πŸ’»πŸ–₯οΈβš’οΈβ›οΈπŸš¨πŸ˜‰πŸ’•πŸš€πŸš€πŸ€—πŸΈπŸŒ›πŸ™„πŸ™‚πŸπŸ˜‰β˜ΊοΈπŸ˜€πŸ˜ƒ

3 thoughts on “Pickle and the Boolean Logic Baby Gate

Leave a comment