Skip to content

khadiwaa/tictactoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe

An implementation of a TicTacToe game. Includes light server built on top of core Ruby TCPServer class, a light framework Router, Controller, Request, and Response objects, the game logic, and a web based UI.

I personally prefer using frameworks, libraries, gems, and other open source options to build applications. I built out everything from scratch here simply as a demonstration of my understanding of web application development.

Requirements

Tested on Ruby 1.9.3 and 2.0.0. Will not work on 1.8.7 or lower.

Running Application

You can open the application from the command line by running ruby tictactoe.rb from the root directory of the application. Optionally, pass in a port number as such: ruby tictactoe.rb 703. Default port is 8000.

Potential Future Improvements

  • Routing by configuration (controller, action, and http verb)
  • Make server multi threaded
  • Improvements to user interface
  • Improve determination of mime-type
  • Unit tests
  • Documentation
  • Cell class instead of passing around arrays or coordinates

About

TicTacToe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published