Terminal-based Snake game
$ go get github.com/DyegoCosta/snake-game
$ $GOPATH/bin/snake-game
$ docker run -ti dyego/snake-game
$ cd $GOPATH/src/github.com/DyegoCosta/snake-game
$ make
Terminal-based Snake game
License: MIT License
We can use Multiple stage build for Dockerfile to reduce image size from nearly 700MB to ~2MB.
PS C:\Users\Admin\Downloads\snake-game> go run main.go
fork/exec C:\Users\Admin\AppData\Local\Temp\go-build2933652261\b001\exe\main.exe: Accès refusé.
go: failed to remove work dir: remove C:\Users\Admin\AppData\Local\Temp\go-build2933652261\b001\exe\main.exe: Accès refusé.
PS C:\Users\Admin\Downloads\snake-game> $GOPATH/bin/snake-game
Au caractère Ligne:1 : 9
~
Vous devez indiquer une expression de valeur après
l’opérateur «/».
Au caractère Ligne:1 : 9
~~~~~~~~~~~~~~
Jeton inattendu «bin/snake-game» dans l’expression ou
l’instruction.
+ CategoryInfo : ParserError: (:) [], Paren
tContainsErrorRecordException
+ FullyQualifiedErrorId : ExpectedValueExpression
Steps to reproduce the issue :
run $GOPATH/bin/snake-game in the terminal
press up/down arrow keys and the left/right arrow keys and notice the speed.
Would be fun to save the high score and display that on the screen!
Would be nice to be able to pause/resume the game by pressing 'p'!
Hello!)
I just created snake-game server on Golang. If you are not busy, how about create a client for snake game multiplayer? It will be funny!))
https://github.com/ivan1993spb/snake-server
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.