golgo

command module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2014 License: BSD-3-Clause Imports: 2 Imported by: 0

README

Build Status Coverage Status

Game Of Life in Go

This project is an implementation of Conway's Game of Life in Go. It uses OpenGL for visualization, which can be run both native and in a web-browser.

This is a pet-project of which the rationale can be found here. Progress can be tracked on the same blog here.

Dependencies

Native

The native build is using the go-gl projects. Dependencies should be downloaded by the install command (see below).

Browser

The web-browser build requires gopher-js and web-gl. Install them on the command line using

go get -u github.com/gopherjs/gopherjs
go get -u github.com/gopherjs/webgl

Build

Native

The native build is compiled, from the root of the project, calling

go install .
Browser

The web-browser build is compiled, from the root of the project, calling

$GOPATH/bin/gopherjs build -o ./build/golgo-js.js golgo-js/*.go

The output files will be under the build directory, which is also referenced by the golgo-js.html file. Open this html file in a browser supporting WebGL to run the application.

Testing

For testing, you need to have the test framework gocheck installed:

go get gopkg.in/check.v1
OpenGL Tests

To test OpenGL and all output it is necessary to create windows and/or run a browser. These tests are in the folder test.

For these tests, another dependency is necessary to be installed:

go get bitbucket.org/tebeka/selenium

and a Selenium Server running. (Note: Not every version works as it seems; v2.39.0 works so far)

License

The project is available under the terms of the New BSD License (see LICENSE file).

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
* The gles2 package contains the constants and interface compatible with * OpenGL ES2.
* The gles2 package contains the constants and interface compatible with * OpenGL ES2.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL