New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/necrophonic/3d-gopher-maze

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/necrophonic/3d-gopher-maze

  • v1.0.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

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 varDefaultDescription
DEBUGfalseSwitches 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

KeyAction
wMove forward one space
sMove backwards one space
aRotate 90° left
dRotate 90° right
qQuit game
hDisplay 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.

FAQs

Package last updated on 29 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc