杏吧传媒

Computer science students take first place in Minecraft competition

Oct 15th, 2020

Kelly Foss

Computer science students take first place in Minecraft competition

A team of 杏吧传媒 students has won first prize in an international artificial intelligence (AI) competition in procedural content generation.

In Winter 2020 Dr. David Churchill, an associate professor in the Department of Computer Science, taught a new course, Computer Science 4303 鈥 Artificial Intelligence for Video Games.

One option for the course鈥檚 final project gave students the task of writing a computer program that used AI to generate villages in the game Minecraft 鈥 the bestselling video game of all time.

鈥淣ormally humans do that sort of content creation, but if you can use AI to generate settlements in a variety of different environments automatically, then game designers don鈥檛 have to sit down and do it manually,鈥 he said.

Infinite world

Troy Pfinder and Trent Hancock, currently in their final semester; and Donald Ryan, who completed his program in the spring, aced the course project and, at the advice of Dr. Churchill, submitted their work to the 2020  (GDMC).

In late September the students learned they had beat 10 other teams of AI researchers from around the world to win first place.

鈥淲e were one of only two teams that actually used our own names in the competition,鈥 said Mr. Hancock. 鈥淪o, we have no way of knowing who the other competitors were. They could have been 15-year-olds or they could have been PhD students.鈥

The 3D Minecraft world is virtually infinite, with terrain divided into biomes ranging from jungles and forests to deserts and snow.

Those biomes can contain plains, mountains, caves, lava, water or other random features. Entrants to the competition must write AI algorithms that create settlements that integrate seamlessly with whatever randomly generated environment that gets thrown at them.

Competition entries are judged by a panel of human experts in four separate categories: Adaptability; Functionality; Narrative; and Aesthetics.

鈥淧roductivity for computer scientists can actually flourish during this time due to their ability to work remotely.鈥鈥 Dr. David Churchill

The challenge in the settlement design competition is to create an algorithm that can adapt to a randomly provided map, creating aesthetically pleasing settlements that are not only functional, but can also tell a story about the surrounding landscape.

鈥淔or the competition, they tested our algorithm against three different maps,鈥 said Mr. Hancock. 鈥淚t scanned the terrain, determined what type of building, for example, was best suited for a particular spot, and then generated it, coming up with something different for each terrain.鈥

Pandemic preparation

The chosen environments often had interesting features 鈥 such as big hills in the middle of a map 鈥 as an extra challenge for the AI programs.

鈥淭hey want to see what your algorithm does with that,鈥 said Dr. Churchill. 鈥淒oes it flatten the hill like a parking lot and build a settlement on top? That鈥檚 easy to do, but you鈥檇 lose style points. Or does it build around those features, and incorporate them into the settlement, by doing things like building paths into the hills, bridges over rivers, etc.?鈥

The students used the Python programming language to build their algorithm and benefited from the extra time the COVID-19 pandemic provided to develop it.

鈥淭he pandemic shut everything down on campus, but productivity for computer scientists can actually flourish during this time due to their ability to work remotely,鈥 said Dr. Churchill. 鈥淎fter campus shut down, I cancelled the last few lectures and told the students to spend all that time working on their projects instead.鈥

Bragging rights

The team took advantage of the opportunity, and at the last moment added a few features, which they feel put them over the top.

鈥淭here was no tangible prize for winning the event, just bragging rights,鈥 said Mr. Pfinder. 鈥淏ut it鈥檚 certainly something to put on a resum茅.鈥

鈥淲inning this competition has way more value than just money,鈥 agreed Dr. Churchill. 鈥淲hen you apply to a company and they ask 鈥榃hat have you done with AI?鈥 You can say: 鈥榃ell, we won this international competition!鈥 If they are interested in programming games or applying for a master鈥檚, it will certainly put them on top of the pile. This is something for them to be really proud of, and I don鈥檛 say that very often.鈥