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.
Tested on Ruby 1.9.3 and 2.0.0. Will not work on 1.8.7 or lower.
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.
- 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