Tic-Tac-Toe over Sockets

Sockets/networked version of Tic-Tac-Toe game ported from Windows Phone to Qt for Symbian and MeeGo 1.2 Harmattan devices. The game is cross-platform and supports two players, using sockets for communicating over the network.


General

This is a two-player version of Tic-Tac-Toe game, communicating with another device over TCP sockets. The game is designed to be compatible with Windows Phone 7.1 (Mango) sample, "Tic-Tac-Toe Over Sockets Sample" which can be found here. For more information about porting, see the porting wiki page.

Tic-Tac-Toe running on Lumia 800 and N9

Main purpose of this porting is to demonstrate the communication between Symbian and Windows Phone devices using sockets. The application logic is implemented with Qt/C++, and the user interface is done using Qt Quick and Qt Quick components. Besides the socket communication, this project also demonstrates UI and game logic separation, utilization of C++ models in QML, and exposing enumerations, defined in C++ classes, to QML. See the wiki page for more information about the implementation.

In addition to the above features, the application can act both as a server and a client in the context of communication. It demonstrates a simple discovery mechanism where the server broadcasts its IP in WLAN network and the game clients can listen to the broadcast to automatically connect to the server.

Compatibility

Symbian devices with Qt 4.7.4 (or higher) and Qt Quick components 1.1. MeeGo 1.2 Harmattan. Tested on Nokia C6-00, Nokia C7-00, Nokia N9 and Nokia N950. Developed with Qt SDK 1.1.4.

Categories: Games, Harmattan, MeeGo, MeeGo 1.2 Harmattan, Networking, Porting, Qt, Qt Quick, Sockets, Symbian, TCP/IP, WLAN
License:
Created: August 8th, 2011
Visibility: Public

3 followers

Project team

Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2011 All rights reserved