Posted on January 18, 2014

GitHub repository

A sequel to this and this.

I like terminals. I like colors in terminals. I also like intuitive and good looking command line applications (colors make it more pleasant for the eyes too). I knew from the start that the Windows command line doesn’t explicitly support colors. That’s why I used UniCurses for cross-platform functionality. Coupled with docopt, the resulting CLI is completely cross-platform and looks kewl.

So I wrote a connect 4 game. Given my fascination with game networking, it’s played online through TCP.

Here it is running on localhost (both server and client):

Usage: server <address> <port> client <address> <port> (-h | –help)

Examples: server 6666 client 6666

 -h, –help