gox

command module
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

README

gox

Tic-tac-toe game in go

Documentation

Use go doc to generate documentation. Allmost all exported fields are in-line documented.

Structure

This repository is split into four packages:

  • main: Contains code for the binary with flag parsing game-mode selection and the actual gamemodes.
  • utils: Some functions that makes handling user interaction easy.
  • gox: Contains all type definitons for the board and game
  • ai: This is a tiny artifical inteligence. It rates fields on a simple pre- defiend value but most importantly it checks for wins or ties. It then uses the negamax- algortihm with varable search depth to determine the next move. It is suprisingly stupid.

Tests

Currently the only test ist broken because the function is now obsolete and removed. This uses standard go test tools.

go get

I you should be able to get the code by entering

go get -u -v github.com/D1CED/gox

in your terminal. Otherwise just clone the repo.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package gox provides defines basic datatypes and methods for creating a simple tic-tac-toe game.
Package gox provides defines basic datatypes and methods for creating a simple tic-tac-toe game.
Package goxai provides a small API using the minimax algorithm with alpha-beta pruning.
Package goxai provides a small API using the minimax algorithm with alpha-beta pruning.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL