GithubHelp home page GithubHelp logo

arthurcaron / amazing-kotlin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from superbob/amazing-kotlin

0.0 0.0 0.0 101 KB

Amazing refactoring, in kotlin

License: Apache License 2.0

Kotlin 100.00%

amazing-kotlin's Introduction

The Amazing Maze Refactoring Challenge

This source code provides a refactoring challenge in kotlin.

  1. Ensure you can get the tests passing. (You can also run the program, to get an idea of the kind of mazes it generates.)
  2. Refactor the code until you can find a good name for the variable q. Be careful to keep the tests passing at all times!
  3. The code contains at least one bug. Did you spot it while refactoring? Can you fix it (test-first, of course)?
  4. Think about your refactoring strategy. Do you use particular moves at certain times in the process? Looking back over the whole process, could you describe a refactoring plan for this code to someone else?
  5. Can you describe the maze-building algorithm used? Can you refactor the code so that some part of it expresses this algorithm? Could you use most of this code to implement one or more alternative algorithms without too much rewriting?

Credits

  • The original program is by Jack Hauber, and the source is "Basic Computer Games." Used with permission of David Ahl
  • This exercise was inspired by Alan Hensel's use of Amazing as a refactoring challenge
  • The transliteration to Java is based on one created by Bill Wake.
  • The initial code repository, including this README file comes from xpsurgery.

amazing-kotlin's People

Contributors

superbob 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.