GithubHelp home page GithubHelp logo

ipeternella / tic-tac-goe Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 5.71 MB

๐ŸŽฒA terminal tic-tac-toe game implemented in GO! ๐ŸŽฒ

License: MIT License

Makefile 1.04% Go 98.96%
golang tictactoe-game terminal-game game

tic-tac-goe's Introduction

Tic Tac Goe - A terminal tic tac toe game

+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +  
|                       WELCOME :)!                         |
|    TT | II | CC                                           |
|   --------------    ____   ____    ____                   |
|    TT | AA | CC       | i c  | a c  | o e                 |
|   --------------              Terminal 1.0                |
|    GG | OO | EE                                           |
|                                                           |
|   This program is licensed under the MIT License.         |
|   >> Press ANY KEY to begin                               |
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +

A terminal Tic Tac Toe game implemented in GO to discover the language!

Terminal Gameplay

Alt text

Board Examples

The default board size is 3x3 but supports up to 9x9 boards!

 00 | 01 | 02 
--------------
 03 | 04 | 05 
--------------
 06 | 07 | 08 

A 6x6 board example:

 00 | 01 | 02 | 03 | 04 | 05 
-----------------------------
 06 | 07 | 08 | 09 | 10 | 11 
-----------------------------
 12 | 13 | 14 | 15 | 16 | 17 
-----------------------------
 18 | 19 | 20 | 21 | 22 | 23 
-----------------------------
 24 | 25 | 26 | 27 | 28 | 29 
-----------------------------
 30 | 31 | 32 | 33 | 34 | 35 

Code linting and formatting

This project uses Go's own formatting tool. Hence, to format the code:

go fmt ./...  # formats all `*.go` files found in the project

Running the project

To run the project, run

make

Which will run the Makefile with the go run option. To compile the project to a binary:

make build

Running tests

To run the tests, run the following command:

make test

Which will scan for the project's *_test.go files and execute them.

tic-tac-goe's People

Contributors

ipeternella avatar

Stargazers

Willian Antunes avatar Ricardo Baltazar Chaves avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.