Video Game Teaches Elementary Students How To Code

Video Game Teaches Elementary Students How To Code

Ten to twelve year olds can learn programming by playing CodeSpells.

Leah Gonzalez
  • 24 april 2013

A team of computer scientists at the Jacobs School of Engineering of the University of California have created a video game that helps kids learn JAVA. CodeSpells is a first-person player video game that was developed to teach elementary and high school students how to use the widely-used programming language.

According to William Griswold who led the team of graduate students developing the video game, it’s especially difficult to teach programming to younger students because of a lack of qualified teachers for the age group and because of the nature of programming itself. The video game was designed to keep the students interested and engaged while they learn the main components of JAVA.


The team tested the video game on forty 10-12 year old girls who have never faced programming before. The team found out that after just one hour of playing, the girls were able to learn the basics of JAVA programming and were able to use it to play the game. The team has already presented its findings at the SIGCSE 2013,  a forum for educators to discuss computer science education.

Currently, CodeSpells is the only video game that uses programming in game play. In the game, the player is a wizard who arrives in a place inhabited by gnomes that used to have magic. The gnomes have lost their magic and it is up to the wizard or the player to help them  by doing the spells for them. The spells are written in JAVA. Spells include flying, building fire, and levitating objects in the game. In the game, players also earn badges and complete quests such as rescuing a gnome or crossing a river. The quests require the players to use the JAVA spells.


The initial test group were able to learn the JAVA spells quickly and were also able to write and rewrite the JAVA codes in order to complete the quests in the game. They were also able to enjoy the game and were disappointed when they had to stop playing. For the research team, the video game is an effective way to teach students outside of the classroom environment.

Jacobs School of Engineering, University of California


Dubai And The Future Of Humanitarian Design

Design & Architecture
Technology october 21, 2016

Concept Camera Designed To Only Take Unique Photos

Camera Restricta is tool that prompts photographers to only capture one-of-a-kind images

Design & Architecture october 21, 2016

Fragrance Will Release The Smell Of Data If Your Private Information Is Being Leaked

The device is designed to create a physical cue for the potential dangers lurking online


Get PSFK's Related Report: Future of Automotive

See All
Retail october 21, 2016

LYNK & CO Is A New Auto Brand That Promises Mobile Connectivity On Wheels

Online access and mobility sharing are driving the company to disrupt the auto industry

Travel october 21, 2016

Become A Citizen Of The First Nation In Space

Asgardia is a new concept for a floating society above Earth

Entertainment october 21, 2016

Speaker Displays Song Lyrics As Music Is Played

The device is able to generate the graphics on a translucent screen and retrieve the words from a connected database

AI october 21, 2016

Travel Assistant Scans Your Emails To Make Planning Easier

This AI add-on will sync with your inbox and sends reminders to make sure you don't miss anything important


Future Of Automotive
Scenarios Driving The Digital Transformation Of An Industry

PSFK Op-Ed october 17, 2016

Home Depot Green Energy Expert: Americans Are Taking Control Of Their Power Use

Green tech expert Jennifer Tuohy discusses new home energy tech and developments for renewables in the US

PSFK Labs october 21, 2016

PSFK Picks: Top 5 Performance-Enhancing Wearables

Our new report looks at innovations pioneering the future of performance through intelligent activewear and predictive analytics

Millennials october 21, 2016

FOMO Survival Kit Helps Millennials Cope With Social Anxieties

The satirical product is meant to be a playful diversion for people who feel like they are missing out

Food october 21, 2016

New York Restaurant Uses Tomato Sushi As Its Newest Meat Alternative

fresh&co is using sous vide Roma tomatoes to create a vegan option that has the texture and taste of tuna

Advertising october 21, 2016

Red Bull Converts Sao Paulo Payphones Into Data-Driven Bus Schedules

The booths allow city residents to check local transit times through a simple toll-free phone call

Work october 21, 2016

Health Expert: Nutritional Meal Replacements Are A Solution To Corporate Wellness

Ample Foods Founder Connor Young explains why supplements are the next food trend coming to the workplace

Retail october 21, 2016

Why Experiential Events Could Replace Trade Shows

Marketers are seeking creative and impactful new ways to connect with influencers

Children october 21, 2016

Modular Kit Teaches Kids How To Make Their Own Robots

MODI features magnetic modules and a platform for programming to encourage experimentation

Infants october 21, 2016

Work Table Doubles As A Baby Seat

Designer Kunsik Choi created the furniture to facilitate emotional communication between between parents and their children

Technology october 21, 2016

Album Turns Into Something New Each Time It’s Streamed

Bill Baird's new album explores the relationship between time and music through a website crafted by design team, One Pixel Wide

No search results found.