Results 1 to 2 of 2

Thread: Play chess over the Internet

  1. #1
    Join Date
    Apr 2009
    Posts
    12
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Smile Play chess over the Internet

    Hi All

    I am creating a chess program that can be played over the internet...
    So far I have the chess program that can be played on one computer...

    I don't know much about qt networking...

    So anyway..I want to make it so that two people can download the program and connect to each other over the internet and play...

    I was wondering if someone could point me in the right direction and how to get started ....I know this is not a specific question...


    Thanks

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Play chess over the Internet

    Over Internet it might be tricky... over LAN it might be easy..
    First about LAN. You will need to provide communication between Side A and Side B. Use sockets for that. Refer QTcpSocket , QTcpServer. You can send the moves made by player A to side B and show it on the screen at side B, and vice versa.

    Second about internet.. You cant directly communicate over internet if IP address is not global. and in home user cases, they are rarely global. You need a server to communicate between two clients.

    Hope you get some idea

  3. The following user says thank you to aamer4yu for this useful post:

    cwnelatury (3rd June 2009)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.