Jump to content

can I use C++ to create 2 player internet game?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
9 replies to this topic

#1
rainingmisery

rainingmisery

    Newbie

  • Members
  • Pip
  • 1 posts
So I want to program this simple board game that 2 players can program over the internet. Ideally, this program would be downloaded and then maybe enter in an IP address or something to connect to another person and bam....2 player. I figure this would be simpler than creating a web-browser based connection. So is this possible with C++? I'm choosing C++ because I only know Java and C++...or do I need to learn a new language?

Thanks for your help!

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
WoW, Starcraft, etc are coded in C++. It can be done.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,715 posts
You'll also need to know socket programming, which is highly platform-dependent. What OS would this run on?
sudo rm -rf /

#4
awazdohamko2004@gmail.com

awazdohamko2004@gmail.com

    Newbie

  • Members
  • PipPip
  • 25 posts
well I would suggest you to move on to java for network coding .. its way more easier .. a 10 page code in C wil reduce to 6 page code in java and its way more easier to handle network programing in java .. and lastly java is more reliable for networking programing

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
C++ and Boost ASIO library will give you cross-platform networking with a consistent code base.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#6
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
There is not that much of a difference :| Windows, Linux, and OS X all copy the BSD socket interface. On windows, its usually just a matter of initializing WinSock before going about your business.

#7
outsid3r

outsid3r

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 623 posts
what board game are u planning to do?

#8
Chinmoy

Chinmoy

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 392 posts
use .NET. It is the easiest and fastest t develop applications on the fly. r create a web application if you can.

God is real... unless declared an integer

my blog :: http://techarraz.com/


#9
outsid3r

outsid3r

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 623 posts

Chinmoy said:

use .NET. It is the easiest and fastest t develop applications on the fly. r create a web application if you can.

The problem is, .NET isn't free...

#10
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,715 posts
CLR will get you more or less the same results, and it is free.
sudo rm -rf /