Results 1 to 3 of 3

Thread: Python sending data via lan?

  1. #1
    Join Date
    Apr 2009
    Location
    Minneapolis/St. Paul
    Beans
    90
    Distro
    Ubuntu 10.04 Lucid Lynx

    Python sending data via lan?

    I fairly new to python, but Ive been studing 3.1 and I believe I have a fair understanding in it.

    I was hoping someone might be able to aid my curiosity on the subject of making a program (in this case is a simple game) talk to its self on another computer over LAN or the internet through the use of TCP or something?

    an example of the simple game being:
    Code:
    print("Choose the highest number?"
    number = input()
    #Sends number to other player and receives the number the other player gave
    if number > enemiesNumber:
    print("You win!")

  2. #2
    Join Date
    Sep 2009
    Location
    Canada, Montreal QC
    Beans
    1,809
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Python sending data via lan?

    I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones.
    Freedom is measured in Stallmans.
    Projects: gEcrit

  3. #3
    Join Date
    Apr 2009
    Location
    Minneapolis/St. Paul
    Beans
    90
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Python sending data via lan?

    Thanks a ton! thats exactly what i was looking for!

Tags for this Thread

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
  •