Skip to content

vitorgil/tictactoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To build tictactoe execute: go build -o bin/tictactoe.exe ./main

This will create an executable in the bin folder which can then be run. Enjoy.

To play use keys:

  • w - up
  • s - down
  • a - left
  • d - right

Known problems:

  • when the last cell is to be filled, if the player moves, the cell becomes empty.
  • when the last cell is to be filled, the game should end without any action from the next player.

Future improvements:

  • add menu for choosing play mode
  • add proper 2-player playing mode
  • add player against computer playing mode
  • add levels of difficulty when playing with computer
  • add code tests

History:

  • 23.09.2017 Added winner checking
  • 23.09.2017 Improved choosing next cell when moving
  • 22.09.2017 Fixed "index out of bounds" problem when moving out of the panel

About

Implementation in golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages