A new game will help kids, and everyone else, learn how to code. Apple is launching Swift Playgrounds for iPad later this year, free in the App Store.

In this game players can control a character named Byte by using real Swift code. Concepts like code fencing and loops are introduced as game mechanics to solve puzzles. Players learn more real coding skills as they progress through the game, as puzzles require increasingly complex movements in order to be solved. There’s also a sandbox mode, where users can create environments using code.

WWDC 2016: WatchOS 3 supercharges the Apple Watch with extra speed and Minnie Mouse

A demo by Cheryl Thomas. VP, Software Engineering Operations at Apple, showed off the main game. Players use Swift code to order Byte to do things like step forward and eat gems. Thomas also showed off a physics environment full of emoji, and showed how users can adjust the physics of the world and other properties by adjusting the code.

The idea here is for would-be programmers to learn Swift before any other language, as Apple CEO Tim Cook made clear.

“Swift is powerful, but it’s also simple and approachable, so it can be your very first programming language,” said Cook.

Apple has been working hard to promote Swift, going so far as to open source the programming language last year. The idea, no doubt, it to shore up Apple’s developer base.

The game fits in the same vein. The more developers who speak Swift “natively,” the more developers who think of Apple’s platforms first. Releasing the application on iPad helps make it accessible, potentially reaching people who otherwise wouldn’t consider learning to code.

“Because Swift is so easy to learn, it has the potential to bring many more people into coding,” said Cook.

Only time will tell how effective this new game is at teaching non-programmers to create in Swift.

Related Posts

OnePlus 15T leak spills details on a curious camera situation

According to the Chinese tipster Digital Chat Station (via Weibo), a "small-screen phone powered by the Snapdragon 8E5 is ready," translated from simplified Chinese. This phone, believed to be the OnePlus 15T, could feature a dual-camera setup "with a 50MP main sensor and a 50MP telephoto lens."

WhatsApp has begun testing a long-overdue group chat feature

The Meta-owned messaging platform is testing a new feature called "group chat history sharing" (via a WABetaInfo report). As the name suggests, the feature lets a WhatsApp user (likely the admin) share the chat history (up to 100 messages sent within 14 days) with someone while adding them to a group.

Google Photos introduces a fun new way to turn yourself into a meme

According to a recent post on Google's support forums, Me Meme is a generative AI feature that lets you star in trending memes using a template and a photo of yourself. It's rolling out in Google Photos for Android in the US, and you can try it out by tapping the "Create" button and selecting the new "Me meme" option.