Git Product home page Git Product logo

ghc2017's Introduction

Grace Hopper Conference 2017 Coding Exercises

Exercises

General Notes

  • Problems are given in Java, Ruby, and/or JavaScript
  • Test cases are given to guide you along the way
  • Classes are empty

How to Work with the Exercises

  • Run the first test (remove the ignore annotation or x)
    • Watch it fail
  • Write just enough code to make it pass
  • Run the test again
    • Watch it go green
  • Refactor if needed
  • Run the test again
    • It should still be green
  • Repeat until all the tests are passing
  • Add more tests as needed

Morse Code Translator

  • Implement a method to translate from English to Morse Code
  • Optional: Implement a method to translate from Morse Code to English
  • Morse Code Information: https://en.wikipedia.org/wiki/Morse_code
  • Translation of characters are at the top of the file
  • Separate letters with spaces; separate words with three spaces
  • Handle unrecognized characters
  • Provided in Java and Ruby

Queen Attack

  • Implement a program that takes two queen positions on a chess board and determines if they can attach each other
  • Source: http://exercism.io/exercises/java/queen-attack
  • Queens can attack if they are in the same row (rank), column (file), or diagonal path
  • Validate input positions
  • Provided in Java and Ruby

Test Invaders

  • This is an app similar to Space Invaders
  • Part of the app is already built, but there are some failing tests and some missing functionality
  • Fix the failing tests and add more as you go
  • This one is in a separate repo because it's forked from another repo
  • https://github.com/sarah12345/TestInvaders
  • Hints:
    • Follow the instructions in the repo
    • Look for failing js tests or TODO comments
    • Add more functionality, like giving the tank multiple lives, ending the game when it's destroyed, etc
    • Be careful with the Jasmine tests. Sometimes syntax errors will cause false success
  • Provided in JavaScript only

Languages

Java

Requirements:

  • Java 8
  • JUnit 4

Ruby

Requirements:

  • Ruby 2.4
  • Rspec 3.5

Commands:

  • rspec

JavaScript

Requirements:

  • Node 6
  • Npm 5

Commands:

  • npm install
  • gulp jest

ghc2017's People

Contributors

sarah12345 avatar vanyaseth avatar

Watchers

James Cloos avatar  avatar

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.