gopi

command module
v0.0.0-...-cc64c10 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: MIT Imports: 9 Imported by: 0

README

gopi

I'm learning go with a view to making a game with it one day.

So I thought a good way to get to know go and its game development ecosystem was to create an OpenGL-based visualisation of a Monte Carlo method for approximating pi.

This program imagines a square, and a circle inside the square with a diameter equal to the square's width. It plots random points inside the square. The ratio of points inside the circle to the total number of points is a very rough approximation of pi/4.

In addition, this program renders a visualisation of this Monte Carlo simulation.

Screenshot

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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