Destructoid is a gaming discussion community updated nearly every 20 minutes by a tight-knit group of independent dirty uncles. Get involved by creating an avatar to post comments, upload videos, create your own blog, and meet new people that love gaming.   Returning Dtoider? login!
latest posts daily recapnew releases deals features reviews podcasts videos contests  
 previews
Retro Game Challenge, Big Bang Mini, and more
Stoked
50 Cent: Blood on the Sand
The Godfather II multiplayer
The Godfather II
more previews


 reviews
Word Soup
Crayon Physics Deluxe
KamiCrazy
Tatsunoko Vs Capcom
Crystal Defenders (iPhone)
more reviews


 podcasts

Podtoid 82: The Internet: making cannibalism easier with Rev Anthony

RetroforceGO! 74 tonight: Greatest retro boss battles with Chad Concelmo

The Podcastle 25: I can't remember what we talked about with Jim Sterling

More shows from the Gamercast Network

back episodes & iTunes info




 team
Nick Chester
Editor-in-Chief
Dale North
News Editor
Anthony Burch
Features Editor
Jim Sterling
Reviews Editor
Hamza Aziz
Community Manager
Niero
Founder/Webmonkey
editors
Ashley Davis
Brad Nicholson
Brad Rice
Chad Concelmo
Colette Bennett
Conrad Zimmerman
Daniel Lingen
Dyson
Jonathan Holmes
Jonathan Ross
Jordan Devore
Joseph Leray
Tom Fronczak
Topher Cantler
Samit Sarkar
contributors
Adam Dork
Ben Perlee
Charlie Suh
Joe Burling
Justin Villasenor
Mike Ferry
Mikey
Will Maddock

Living the dream
ModernMethod


12:23 AM on 08.11.2008

7 comments

Google turns Portal into a coding problem

Justin Villasenor on Freeware

Google turns Portal into a coding problem screenshot

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]


7 comments   |   latest by wardrox
haha, awesome. I may just have a play with this.... read more


 

RELATED ARTICLES

The Memory Card .50: A shocking loss
52 comments

Mad Catz Street Fighter IV peripherals are slick
34 comments

Ubisoft announces Grey's Anatomy game, excuse to post pics of Katherine Heigl
20 comments

Attention all Slugga Boyz: Dawn of War II system requirements are here
15 comments

Dawn of War II multiplayer beta dated, here's how to get in
10 comments



 community blogs  (32178 Dtoiders!)
post a community blog
Game with us: Friday Night Fights
Meet-ups: Dtoiders in your city
New to Dtoid? Read the survival guide



 features next 20 features





 new videos next 20 videos
CES 2009: Prototype is 'all crunch, but no munch'
CES 2009: Digital Experience! overview video
CES 2009: Sixense one-ups the Wii remote
EA anounces four MySims games, we report
Someone hasn't learned: Cooper Lawrence talks videogames on FOX again



 popular stories last month's picks
HD DVDMod your useless HD DVD Drive to BURN PEOPLE'S FACES OFF!
21 comments + 95764 views
A boot to the headEconomics or stupidity: 1UP podcast firings to save UGO $2.5 million annually?
75 comments + 22348 views
Mortal KombatMortal Kombat vs. DC Universe: More fatalities revealed
70 comments + 18826 views
Also, bewbsDirty Lara Croft gets clothes off, this is videogame news
54 comments + 14632 views
ReviewsDestructoid Review: Crayon Physics Deluxe
24 comments + 13144 views
AliensA brief and bloody history of Aliens videogames
32 comments + 12904 views
AdsPenny Arcade promotes their game with flamebait from their biggest critic
79 comments + 12880 views
Halt, criminal scum!Left 4 Dead star suspected of robbery, shot by cops
47 comments + 10966 views
Street fighterCammy screens are not intellectually stimulating
30 comments + 10960 views
Featured articlesPlaying With Others: The act of betrayal
26 comments + 10438 views



 game figures & toys  via Tomopop

more video game toys




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 industry's need of accountable enthusiast press
Living the dream since March 16, 2006