Git Product home page Git Product logo

gobra's Introduction

gobra 🐍

Feature-rich snake clone in Go using ncurses

Build instructions:


1. Dependencies:

  • On Arch Linux: sudo pacman -S ncurses go

2. Installation:

  • Build repository: make

  • Install binary: make install

  • Remove binary: make uninstall

How to play


Move the snake by using the WASD keys. The more food you collect, the larger the snake grows. If the snakes collides with itself or touches the wall the round is over. Score increases depending on the time it takes you to collect the next food item.

Options


-v enables vim keybindings

-d outputs useful debug information

-n opens boundaries

-s enables sound

License


My gobra project is under MIT license.

gobra's People

Contributors

alexanderstephan avatar renovate[bot] avatar dependabot[bot] avatar

Stargazers

Kaffee☕ avatar

Watchers

James Cloos avatar  avatar

gobra's Issues

Audio not working

The game crashes when audio is turned on via -s as soon as a sound is played (e.g., the snake eating food).

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x10025d6e0]

goroutine 1 [running]:
github.com/hajimehoshi/oto/v2.(*Context).NewPlayer(...)
    /Users/alexanderstephan/go/pkg/mod/github.com/hajimehoshi/oto/[email protected]/context.go:85
main.play(0x4072c00000000000, 0x10036fbf0?)
    /Users/alexanderstephan/Programming/gobra/sound.go:108 +0xa0
main.main()
    /Users/alexanderstephan/Programming/gobra/main.go:122 +0x6f4

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/go.yml
  • actions/setup-go v5
gomod
go.mod
  • go 1.21
  • github.com/hajimehoshi/oto/v2 v2.4.1
  • github.com/rthornton128/goncurses v0.0.0-20231014161942-82671379df88@82671379df88

  • Check this box to trigger a request for Renovate to run again on this repository

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.