Skip to content

Instantly share code, notes, and snippets.

@theRemix
Created October 24, 2019 18:57
Show Gist options
  • Save theRemix/470afc0309b20c8ce2bf5a65eac86b5c to your computer and use it in GitHub Desktop.
Save theRemix/470afc0309b20c8ce2bf5a65eac86b5c to your computer and use it in GitHub Desktop.
Ghostbusters - City input (for cnp)

Sample Input:

                        +
    @                   |
                   +---------+                @
                  +  @  @     +             +------+
          @        +---------+         @    |     -+    @
      @             @  | |                  |     @|
+-----------+  +-----+ | |    @             |      |
|           |  |     | | |                  |   ---+
|  @     ---+  | @   | | | @               @|      +-------+
+------- @  |  |     | | |   +-----------+  |      |       |
| ----------+  | ----+ | |   |          @|  | -----+ @     |
|           |  |     | | |   +-----------+  |      |       |
|    @      | @|     | | |   |          @|  |      |       |
+-----------+  +---  | | |   +--------   |  |      |       |
|           |  |     | | |   |@          |  |      |    @@ |
|          @|  |     | | |   |           |  +----  |       |
+-----------+  +-----+ +-+   +-----------+  +------+-------+

Expected Output:

                        +
    @                   |
                   +---------+                @
                  +           +             +------+
          @        +---------+         @    |     -+    @
      @             @  | |                  |      |
+-----------+  +-----+ | |    @             |      |
|           |  |     | | |                  |   ---+
|        ---+  |     | | | @               @|      +-------+
+-------    |  |     | | |   +-----------+  |      |       |
| ----------+  | ----+ | |   |           |  | -----+       |
|           |  |     | | |   +-----------+  |      |       |
|           | @|     | | |   |           |  |      |       |
+-----------+  +---  | | |   +--------   |  |      |       |
|           |  |     | | |   |           |  |      |       |
|           |  |     | | |   |           |  +----  |       |
+-----------+  +-----+ +-+   +-----------+  +------+-------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment