WIN32 Chess server

This is a discussion on WIN32 Chess server within the Windows Programming forums, part of the Platform Specific Boards category; I am building a Chess Game which will reside on a server and waits for to player to connect and ...

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    1

    Cool WIN32 Chess server

    I am building a Chess Game which will reside on a server and waits for to player to connect and play chess.I have developed the prototype.this prototype has the following capabilities :

    *you can move the characters
    *it can check whether a move is valid or invalid

    Problem 1-

    I need guidence in how to proceed further.i need help especially in networking part


    Problem 2-
    How can I run a chess server and 2 clients(for testing purpose)
    on the same PC?

  2. #2
    Registered User
    Join Date
    Aug 2005
    Location
    Pasadena, CA
    Posts
    6
    You can try Virtual PC from Microsoft which allows you to do networking in a single computer between virtual PCs. It is great for software testing since you can install several operating systems in the same computer running in their own private virtual machine space.

    As to helping you with the networking code, it would help if you have any specific question. Asking a very general question to help you out will not give you any responses.


  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    Or use the networking forum here.

    I don't see a need for a virtual PC for this problem - two clients should be able to connect to a given port on 127.0.0.1

    > How can I run a chess server and 2 clients(for testing purpose)
    Start with a server which merely prints the requests, eg
    - request to move pawn from A4 to A5
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    Yeah, it should. When I was making a LAN messaging program it worked for me. Just make sure to, when initializing your socket, tell it to accept 2 connections, no more no less. Unless you want the person running the server to be able to play.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. server client application - (i really need your help)
    By sarahnetworking in forum C Programming
    Replies: 3
    Last Post: 03-01-2008, 09:54 PM
  2. Server Architecture
    By coder8137 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-29-2008, 10:21 PM
  3. Where's the EPIPE signal?
    By marc.andrysco in forum Networking/Device Communication
    Replies: 0
    Last Post: 12-23-2006, 07:04 PM
  4. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM
  5. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21