Code Monkey home page Code Monkey logo

3d-gopher-maze's Introduction

3D Gopher Maze

Go Report Card

Find the gopher, escape the maze!

Inspired by 80s games like 3d monster maze and phantom slayer, this is a little maze crawler game using just the terminal for rendering.

You're placed randomly in a maze and you need to find the gopher and escape by finding the exit.

╔════════════════════════╗
║ ▓▓                  ▓▓ ║
║ ▓▓▓▓              ▓▓▓▓ ║
║ ▓▓▓▓▓▓            ▓▓▓▓ ║
║ ▓▓▓▓▓▓▓▓      ░░░░▓▓▓▓ ║
║ ▓▓▓▓▓▓▓▓▓▓  ▓▓░░░░▓▓▓▓ ║
║ ▓▓▓▓▓▓▓▓      ░░░░▓▓▓▓ ║
║ ▓▓▓▓▓▓            ▓▓▓▓ ║
║ ▓▓▓▓              ▓▓▓▓ ║
║ ▓▓                  ▓▓ ║
╚════════════════════════╝
Facing: N

Which way?: 

Playing

Launching

Open your terminal of choice and run:

go run cmd/maze/main.go

There are a few environment vars supported for changing behaviours:

Env var Default Description
DEBUG false Switches on developer debugging. This will stop the screen auto-refreshing and move to slide mode.

Controls

To move around, use W,S,A & D (case insensitve) keys. Quit using q and display help with h

Key Action
w Move forward one space
s Move backwards one space
a Rotate 90° left
d Rotate 90° right
q Quit game
h Display help

Currently the game doesn't support just press-move; you need to type the letter of the command and hit <return>!

How to win

Note, the win conditions aren't actually implemented yet!

  • Find the gopher hidden somewhere in the maze
  • Then find the way out! (not implemented yet!)

Exiting the game

Either type q as a command, or use ctrl-c

Contributing

  • Any pull requests raised must:

    • Be formated with go fmt
    • Contain a good description
    • Have sensible commit messages (not just "fixed things")
    • Where appropriate should include/update unit tests verifying the change/fix
  • Any spam will be deleted

License

Copyright © 2020 J Gregory

Released under MIT license, see LICENSE for details.

3d-gopher-maze's People

Contributors

necrophonic avatar gowhale 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.