DEV Community

Cover image for My First Golang Program

My First Golang Program

Andrew Healey on October 02, 2019

I’m new to Go. Over the last week, I completed A Tour of Go and tonight I wrote my first program, an interactive Conway's Game of Life. I used Ebit...
Collapse
 
yuanhao profile image
YuanHao Chiang

Looks great! I also enjoyed learning Go immensely and use it for server-side. Never expected that it would work as a game engine so well!

Seems like it's time to start playing with Go again :)

May I ask what platform did you develop it in and if it is 100% cross-platform?

Collapse
 
healeycodes profile image
Andrew Healey

Thanks!

I developed on Windows and it runs the same on macOS/Windows.

Ebiten games work on various platforms like desktops (Windows, macOS, Linux, and FreeBSD), web browsers (GopherJS and WebAssembly), and mobiles (Android and iOS).

😊

Collapse
 
jordonr profile image
Jordon Replogle • Edited

Go actually works really well as a game engine: godotengine.org/

Collapse
 
jeikabu profile image
jeikabu

Isn't godot C++?

Thread Thread
 
jordonr profile image
Jordon Replogle

Wow, yes it is... sorry for the misconception.

Thread Thread
 
jeikabu profile image
jeikabu • Edited

Given the name, it's mighty tempting.

The only reason it stuck out to me is because I know a game team using godot and doing their backend in Rust. I couldn't believe the client was golang and they wouldn't use the same for the server. lol

Collapse
 
healeycodes profile image
Andrew Healey

Thanks for the link!

Collapse
 
pparmin profile image
Philipp Armingeon

Hey Andrew,

Very interesting article and project! If I may ask: How did you go about researching for your game of life project? Are there resources you would absolutely recommend? I'm also really interested in making my own version one day.

Collapse
 
healeycodes profile image
Andrew Healey

Hi!

I read the Wikipedia article and watched an interview by John Horton Conway where he spoke about it.

If you create a grid and translate the rules into code, you’re halfway there!

Collapse
 
pparmin profile image
Philipp Armingeon

Thank you so much for getting back to me quickly! I'll check out that video!

Thread Thread
 
healeycodes profile image
Andrew Healey • Edited

Post your version if you make it 👍🏻

Collapse
 
gerreth profile image
Gerret Halberstadt

Nice, when I came across Conway's Game of Life I was fascinated by it (and did a version in MATLAB 🙈). In case you do not know, samcodes.co.uk/project/game-of-life/ might be interesting for you :)

Collapse
 
healeycodes profile image
Andrew Healey

What an awesome resource! Very slick interaction. Thank you for sharing 🙏

Collapse
 
ajinkyax profile image
Ajinkya Borade

amazing. Im gonna convert my Terminal based GO game of life into ebiten. Thanks to you :)
github.com/steelx/gameOfLife

Collapse
 
healeycodes profile image
Andrew Healey

Awesome stuff! Would love to see it 👍🏻

Collapse
 
ajinkyax profile image
Ajinkya Borade • Edited

Done <3

github.com/steelx/gameOfLife/tree/...

merged to master now with Ebiten

Thread Thread
 
healeycodes profile image
Andrew Healey

Neat!! Ebiten is perfect for small projects like this 🙂

Thread Thread
 
ajinkyax profile image
Ajinkya Borade

Following you on twitter. I'm twitter.com/ajinkyax

Collapse
 
therealkevinard profile image
Kevin Ard

Is the repo open? A friend of mine is fascinated with Conway's Game, and I've been meaning to build one for him - can I borrow? :)

(I don't have the time, of course 🤷‍♀️)

Collapse
 
healeycodes profile image
Andrew Healey

It’s open source. Borrow anything you need! 👍🏻github.com/healeycodes/conways-gam...

Collapse
 
therealkevinard profile image
Kevin Ard

Amazing, thanks! I'm gonna build today 🙌

Thread Thread
 
healeycodes profile image
Andrew Healey

I’d love to see what you come up with 👍🏻