Skip to content

sts10/tic-tac-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Go

I'm writing a command line tic-tac-toe game as I try to learn Golang! It seems to work OK as of this writing.

Running this program

go run .

I'm using Go version 1.22.3.

Some high-level notes on my approach to checking for a winner

To check for a winner of the tic-tac-toe game, I'm using an array called sums that adds up each of the possible winning "lines" in a 3x3 game of tic-tac-toe.

sums explained

Blog post

Here is a long blog post I wrote about making this little game, first in Golang, then in Rust.

Where I've been learning Go from

This great YouTube video as well as "A Tour of Go".

If you have other Go-learning resources that you think would help me (or others), feel free to file an issue or hit me up on Mastodon!

About

A command line tic-tac-toe game in Golang

Topics

Resources

License

Stars

Watchers

Forks

Languages