Thread: New in Networking (Chess?)

  1. #1
    Registered User
    Join Date
    Dec 2008
    Location
    California
    Posts
    37

    New in Networking (Chess?)

    I never had an experience writing a program that uses network. So I'm hear asking if there are any tutorials out there that focus on lan network games like a chess. Can you please give me a book or maybe a site on how to create a network or let say a lan game in chess. Is it hard? By the way, I'm using OpenGL and C++.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    What part are you having problems with? You have a client that sits there and waits for a move to be sent it. Once it arrives, it handles it, and takes your move, while the other waits for you to send it one.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Dec 2008
    Location
    California
    Posts
    37
    I tried to search in google about Network Programming, but I'm having a problem on where to start. Do you think this tutorial is sufficient enough for my game? I just want to make it so simple because this networking is just an addon feature for my game and not that really important on my project. I just want to know how networking works.

    I want to make the two players on this game interacts via LAN (Two different computers via RJ45), then they can play each other, gracefully. lol.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    The tutorial isn't too bad, but some details are a bit less than perfect. The use of a pointer for the reference count is completely unnecessary. We use pointers for things that are larger than a pointer in itself - an integer is either the same size or smaller than a pointer.

    Beej's guide to network programming is often referred to as the ideal place to start.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Registered User slingerland3g's Avatar
    Join Date
    Jan 2008
    Location
    Seattle
    Posts
    603
    Do not bite off more than you can chew here. I would start of by building a simple client and server side code and send plain text across and verify that they have received each others responses. Then build from there to add in your chess logic. I guess you will be sending in 8X8 coordinates of the desired moves by each client to each other? Granted your cooredinats have been validated to be correct moves by the appropriate piece. Would you do that on the receive side or senders side...I digress.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. chess ai contest
    By Raven Arkadon in forum Contests Board
    Replies: 7
    Last Post: 07-09-2005, 06:38 AM
  2. Ultra chess engine contest
    By yodacpp in forum Projects and Job Recruitment
    Replies: 8
    Last Post: 11-21-2004, 07:58 AM
  3. Ultra chess engine
    By yodacpp in forum Game Programming
    Replies: 2
    Last Post: 11-19-2004, 12:33 PM
  4. Beyond MFC : COM || Networking
    By kuphryn in forum Windows Programming
    Replies: 5
    Last Post: 04-25-2002, 04:28 PM
  5. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 08:03 PM