empize / DTSocketTicTacToe

Play Tic Tac Toe game with TCP/IP socket connection. Project structure follows MVP architecture. -> Swift 5.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DTSocketTicTacToe

Screenshot

AppLogo

Play Tic Tac Toe game with TCP/IP socket connection. Log Console on screen is available for showing logs connection, disconnect, failure in connection and data passing with socket. For managing socket programming “GCDAsyncSocket” is used. Apple's native CFNetwork framework is used for manage Bonjour service using NetService. Project structure is using MVP architecture. -> Swift 5.0

Follow the full tutorial here. https://medium.com/@dhavaltrivedi_56634/socket-programming-netservice-gcdasyncsocket-bonjour-for-ios-d01df0b53aca

GameVid

Note: Bonjour is discovering services for devices with the same wi-fi network. So, if you are hosting and joining both with the simulator, there is no problem, but if you are trying to connect simulator and device or device to device make sure both are connected with the same wi-fi network.

About

Play Tic Tac Toe game with TCP/IP socket connection. Project structure follows MVP architecture. -> Swift 5.0


Languages

Language:Objective-C 89.1%Language:Swift 10.9%