Skip to content

mamapitufo/chall-tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tic-tac-toe

Simple tic-tac-toe game for the console, written in Clojure.

Allows 2 players to play against each other.

Usage

You need Leiningen to run it:

$ lein run

Technical Notes

  • I started with a flat collection to represent the board thinking that it would be easier to manage the lookups and change the dimensions of the board. I'm happy with some aspects, but I don't like the side function or the rows helper.
  • At some point I started moving some of the functions to their own modules (board related functions, screen rendering functions, etc), but then I thought it wasn't necessary for such a small program.
  • I'm not too happy with the cond and if's in the game loop, but couldn't come up with a different solution.
  • The functions for saving and loading games are in tic-tac-toe.persist, but I could not complete the command processing for user input on time.

License

Copyright © 2014 Alberto Brealey-Guzman

About

Simple console tic-tac-toe.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published