I’ve been meaning to learn Go, so I wrote a program that does the following:
- Spawns X number of goroutines
- Each goroutines will call the HexBot api, deserialize the result, and pass it back to the controlling thread on a channel.
- API requests are rate-limited through another channel. Only 20 requests per second allowed. Otherwise HexBot gets mad and gives you a 403
- Main thread spawns an OpenGL window and plots the returned hex codes randomly on the screen, creating a colorful TV static look.