Coder Social home page Coder Social logo

code-foo-2015's Introduction

IGN's Code-Foo 2015

For more information on IGN's Code-Foo 2015, visit ign.com/code-foo/2015.

To apply to Code-Foo 2015, fork this repository and answer all questions. Push your answers to your fork and send us an email at [email protected] to let us know you're finished.

IGN's Code-Foo 2015 is open to US residents only. All answers must be completed using Java, Scala, PHP, Ruby, Swift, Objective-C, or JavaScript. Application must be turned in by Friday, May 1st at 5pm PST. You will be notified by email if you pass the first round of submissions.

  1. Create a 2-5 minute video introducing yourself and tell us why we should choose you for the Code-Foo program.

Answer: My video.

  1. How many ping-pong balls can you fit in 747? Describe each step in your thought process.

Answer: I'll be honest, math is not my strong suit. I'm a visualizer, ergo my first response is not one with mathematical logic. In my mind I'm taking into account the literal available space within an airplane. It's the plane hollow? Or are there seats and whatnot? Can I use the bathroom space? Will the balls be pressed againts the seats to take advantage of that fluff space? Can the balls be repositioned so that they're in as much space as possible?

At this point I'd team up with a mathematician to come up with an estimate.

A quick Google search brings up the top result having the answer found here. It would, of course, be unrealistic for me to pretend as though I came up with the answer myself, let alone knew how.

  1. Write a program to find the given words from the included word search. Both word search and words can be found at word-search.txt

Answer: My language of choice was JavaScript. I have made 4 files: The first one is "word-search.js". It's a very basic regex string matching program. The second one is "word-search-error.js". It's exposes the flaws in the first program, in how it allows false positives to fall through. The third one is "word-search-thorough.js". It matches and filters out the matched string to be sure it matches the given word. The final one is "word-search-thorough-error.js" (sorry for the long names). It simply has errors in the previous program to show that it works better than the first program.

  1. Using this API, pull and display a list of both articles and videos.

Answer: The file for the plain version is "plain-app.js." It has two routes: "/videos" and "/articles".

  1. Using the results from the previous question, create a web/ios/android application that displays the results and matches this design. The application should be responsive to common screen/device sizes.

Answer: The main file for this "app.js". I've provided every file needed, including the "node_modules" file for convenience. It has 3 routes "/", "/videos" and "/articles". The "/" routes redirects to "/videos"

Bonus Question

Programmatically create a game similar to Battleship™ with one AI-controlled opponent and a human-controlled player.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.