kareemaly / tictactoe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TicTacToe

Multi-player tictactoe game with an AI player.

Prerequisite

Game Configurations

You need to copy and paste game-config.example.txt to game-config.txt.

Building image

While on the project root folder, run:

docker build -t tictactoe:latest .

Running The image

docker run --rm -it -p 127.0.0.1:8888:9999 tictactoe:latest

Change port 8888 to whichever port you like.

Now the game server has started and players can start connecting to play against each other.

Connecting To The Game - For Players

Using Netcat linux command

nc 127.0.0.1 8888

About


Languages

Language:Java 99.5%Language:Dockerfile 0.5%