sts10/zig-zac-zoe
A basic tic-tac-toe game in Zig programming language
Writing a very basic command-line tic-tac-toe game in Zig as a way of learning the very basics of the language. I also wrote a blog post about this project.
Previously, I did this in Rust and Go as a learning exercise in those two languages.
Consult the Zig GitHub README for installation options.
I think I installed Zig by running: snap install zig --classic --edge
, as listed in Zig's GitHub wiki. I originally wrote this program running v0.9.1.
Once Zig is installed, you should be able to run this program with the following command:
zig build run
This program should work with Zig version 0.13.0, though I haven't tested it thoroughly.
Note that most of the code work is in src/main.zig
.
These are potentially out-dated now, but here are some things I used in 2022: