Got news?   tips@destructoid.com  |  Never miss a story:   RSS + Twitter + YouTube
Hey! New here? Destructoid is a gaming discussion community, updated nearly every 20 minutes. Make a quick avatar to comment and enter our contests. Take the tour!

 


Home Portal updates

Google turns Portal into a coding problem

12:23 AM on 08.11.2008, Justin Villasenor 7 comments

Google turns Portal into a coding problem photo
     Portal

I may know next to nothing about the intricacies of programming, but I do know a minimalist 2D version of Portal when I see it. The above images are examples from the third round problem in Google’s Code Jam, an ongoing competition that gives professional and student programmers the chance to score some cash and a trip to Google Headquarters if they place in the top 100.

Rather than trying to escape the empty halls of Aperture Science, this problem has players guiding a portal gun equipped red dot through a maze to reach a cake (that isn’t a lie) in as few steps as possible. Here’s a snippet from the description:

For this problem you find yourself in a R by C grid. Additionally there is a delicious cake somewhere else in the grid. You're very hungry and wish to arrive at the cake with as few moves as possible. You can move north, south, east or west to an empty cell. Additionally, you have the ability to create portals on walls.

Given the maze, your initial position, and the cake's position, you want to find the minimum number of moves needed to reach the cake if it is possible. Remember that shooting the portal gun does not count as a move.


There’s also some coding mumbo-jumbo that doesn’t make all that much sense to me, but if you can understand it feel free to download the two mazes and give them a try.

[Thanks, Michael]


Next page: More PC stories




NihonTiger90's Avatar
NihonTiger90 at 08/11/2008 08:50
The Google team are a bunch of nerds. :p
Eschatos's Avatar
Eschatos at 08/11/2008 09:54
They could have finished that picture in two moves. Lazy.
mistic's Avatar
mistic at 08/11/2008 11:12
I hope its made in honour of, and not a blatant copy :)
stevesan's Avatar
stevesan at 08/11/2008 11:43
If someone comes up with a good AI that can navigate with the Portal gun, props to them!

And they'll be hired by Valve, so Portal can have an escort mission. Sw33t!
wardrox's Avatar
wardrox at 08/12/2008 03:01
haha, awesome. I may just have a play with this.
prev next

Returning Dtoiders: login now to post a comment

Destructoid is an open discussion community. You don't need to "audition" to post a comment - just Create an avatar now - it's fast and free: PLUS you also get your own gaming blog and begin posting stories and uploading videos in our open community area that may also appear on our home page. Sign up and we'll guide you through it, it's easy and 100% anonymous.




 Original Videos

 Reviews
Mad Dog McCree Gunslinger Pack
Overlord II
Yosumin Live!
Let's Tap
Ghostbusters: The Video Game (Wii)
View all Game Reviews

 Community blogs -   39719 Dtoiders!

This month's theme: Untapped Potential

New to Dtoid? Read the survival guide


 Originals

The best and worst '4th' videogames EVER!











more original Destructoid stories



 Popular now more













Destructoid is:
Nick Chester
Editor-in-Chief
Jim Sterling
Reviews Editor
Dale North
News Editor
Hamza Aziz
Community Manager
Anthony Burch
Features Editor
Rey Gutierrez
Video editor & director
Niero
Founder, publisher
Letters to the editors
tips@destructoid.com
Associate Editors
Ashley Davis Jonathan Holmes
Brad Nicholson Jonathan Ross
Brad Rice Jordan Devore
Chad Concelmo Matthew Razak
Colette Bennett Tom Fronczak
Conrad Zimmerman Topher Cantler
Dyson Samit Sarkar
Contributors
Adam Dork
Ben Perlee
Daniel Lingen
Joseph Leray
Joe Burling
Mikey
Will Maddock
Stella Wong




get involved

register or login
post a blog
post a forum
enter a contest
discuss a review
contribute a news tip
write a guest editorial
support

new member's guide
login assistance
tech support
report abuse
email our editors
read our dev blog
nuclear crisis?
keep in touch

RSS feed
Twitter
Facebook
Myspace
Flickr
Game nights
Meet-ups
seriously

about us
advertising
terms of use
privacy policy
jobs at MM
buy our crap
our network

Tomopop
Japanator




Destructoid is an independently-run publication forged by our love of video games and the gaming community's need of accountable enthusiast press
living the dream since March 16, 2006