to run the game you just need to have GO programming language installed.
You may also want to use graphical version of the game, so I suggest following GIU installation instruction
To install the game with golang api,
first download it: go get github.com/gucio321/tic-tac-go
and let's GO!
Since now, an executable will be present in $GOPATH/bin/
directory.
After installation, just run
go run github.com/gucio321/tic-tac-go/cmd/terminal-game
for
simple console game implementation or
go run github.com/gucio321/tic-tac-go/cmd/giu-game
for
advanced graphical one.
You can also download the source by running
git clone https://github.com/gucio321/tic-tac-go
and then, to set up the project:
cd tic-tac-go
go get -d ./...
Since v3, I support Docker to build and run the game.
images are available on quay.io
Note, that you need to add the following options to correctly run the container:
docker run \
-d
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix/:/tmp/.X11-unix/ \
--security-opt label=type:container_runtime_t \
quay.io/gucio321/tic-tac-go:latest
you can use docker-compose to skip the above commands:
docker-compose up -d
When I'm learning a new programming language, I write a game like this one to check myself. Because I liked golang and decided to share and improve my work.