GithubHelp home page GithubHelp logo

nikoschoinas / tictactoe Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 108 KB

Tic Tac Toe game that simulates server-client communication over TCP. Works locally.

C 100.00%
c tic-tac-toe server localhost windows exe visual-studio-2013 douglas-comer client api

tictactoe's Introduction

TicTacToe

The programs have developed for Windows operating systems through Visual Studio 2013. They use Douglas E. Comer’s APIs that are provided in the api folder. The program runs locally and stimulates a TCP communication between a client and a server.

-TicTacToeS is an executable file that runs in cmd with the above syntax: TicTacToeS 2000 You need to be at the same directory with the exe file. It’s the server that communicates with the 2 players above TCP. The source code is in TicTacToe.c file and there are some basic comments for its understanding. The server handles specific messages to ensure the right communication between the two entities (players). Messages such as: game’s board, Wrong, Fault, 0 (in case of a wrong move), TimeIsOver. Those messages are already known to TicTacToeC program and they indicate specific movements. The server notifies the player if a wrong move is occured and it returns the round at the beginning.

-TicTacToeC is an executable that runs in cmd with the syntax: TicTacToeC It takes some information about IP and port from tictactoe.config file and then connects to the server. The commented code is at TicTacToeC.c file. Every player that executes TicTacToeC has 15 seconds to make a move. The program prints messages to console to inform the user about the game’s state.

tictactoe's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.