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!
can I use C++ to create 2 player internet game?
Started by rainingmisery, Jun 11 2009 07:49 AM
9 replies to this topic
#1
Posted 11 June 2009 - 07:49 AM
|
|
|
#2
Posted 11 June 2009 - 07:57 AM
WoW, Starcraft, etc are coded in C++. It can be done.
#3
Posted 14 June 2009 - 06:26 PM
You'll also need to know socket programming, which is highly platform-dependent. What OS would this run on?
sudo rm -rf /
#4
Posted 15 June 2009 - 11:06 AM
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
Posted 15 June 2009 - 11:23 AM
C++ and Boost ASIO library will give you cross-platform networking with a consistent code base.
#6
Posted 15 June 2009 - 11:31 AM
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
Posted 16 June 2009 - 01:33 PM
what board game are u planning to do?
#8
Posted 20 June 2009 - 11:03 AM
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
Posted 20 June 2009 - 11:14 AM
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
Posted 20 June 2009 - 02:11 PM


Sign In
Create Account

Back to top









