Skip to content

siongui/go-online-snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Online Snake Game

Golang online snake game, compiled to JavaScript by GopherJS.

Usage

  1. Development environment is Ubuntu 15.10 and Go 1.5.2.

  2. Download and install Go and modify GOROOT in Makefile.

  3. Install GopherJS and its DOM binding:

    $ make install
  4. Run the code by:

    $ make

    Then open your browser at localhost:8000

Online Demo

See project page.

Released in public domain. See UNLICENSE.

References

[1]siongui/dart-snake-game · GitHub (demo)
[2]

Google Search golang queue

go - Queue implementation in golang - Stack Overflow

[3]time - The Go Programming Language
[4]rand - The Go Programming Language
[5]

Google Search golang traverse array

Is there a foreach in Go? - Stack Overflow

[6]Google Search golang do while
[7]Google Search golang int to string
[8]fmt - The Go Programming Language
[9]

Google Search golang periodic timer

go - Is there a way to do repetitive tasks at intervals in golang? - Stack Overflow

[10]Google Search golang prepend slice