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)
- Host: GitHub
- URL: https://github.com/kayoyin/tictactoe
- Owner: kayoyin
- Created: 2019-05-27T07:17:22.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-03T10:16:56.000Z (about 7 years ago)
- Last Synced: 2024-12-29T12:46:26.545Z (over 1 year ago)
- Topics: client-server, socket-programming, tic-tac-toe, udp
- Language: C
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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