An open API service indexing awesome lists of open source software.

https://github.com/kayoyin/tictactoe

CSE207 Networks: Implementation of client and server to play tic-tac-toe using UDP sockets (20/20)
https://github.com/kayoyin/tictactoe

client-server socket-programming tic-tac-toe udp

Last synced: 6 months ago
JSON representation

CSE207 Networks: Implementation of client and server to play tic-tac-toe using UDP sockets (20/20)

Awesome Lists containing this project

README

          

Milestone reached: (4) Fully functional client, and 2-player server

Compile the assignment: run 'make'

Set up the server: run './server 1234' (using port 1234 for example)

Connect two clients to the server to play: open two separate shell windows, make sure to be in the assignment directory, and run './client 127.0.0.1 1234' in each shell window

Once two players have connected to the game, you will be able to play by following the instructions printed on the shell.
The code is not (yet) robust against user inputs in wrong format, so please make sure to input two numbers separated by a single space to choose each move

Resources used for this assignment:
Course moodle page of the assignment for initial structure of client.c
https://www.geeksforgeeks.org/udp-server-client-implementation-c/
common.h, common.c files provided
Few stackoverflow answers I googled (mainly for debugging)
What I coded for wgetX assignment