473,435 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,435 software developers and data experts.

How do I make a network game on JAVA?

LazyPrinzez
There is a local card game here in our place that me and my classmates got addicted to (oh no, we don't put bets on it, we just play the game), but when we get to our respective homes, no one in our place knows how to play the game but us. So we were thinking if we could search the net for an online version, but no, there is none (because it's a local game, no one out there knew of it).

Now we thought like, "What if we make this game into an internet program?"

It's a nice thing to say, but unfortunately, the game needs different people playing it, so we obviously need to make this program work like a network--that's the problem. None of us second year Computer Science majors know how to make a network game, because we just turned second years last June (I know this is just an excuse but you get the point--we are the neophytes in this CS community). Needless to say, we don't have any knowledge about network-based programs.

So please kindly help me with this question. Not only will we be able to make the game online, we would also definitely acquire knowledge about making network-based programs. =D

PS: We would like to put it up on the net somewhere so we can access it anytime. The game rules are really easy so if we finish this little project, we would also like you to try it.... ^_^
Jul 26 '10 #1
1 3442
chaarmann
785 Expert 512MB
1.) Rent a server with Apache-Tomcat running (no database needed, no big disk space needed). You should get one for around 5$ per month.
2.) Program an HTML-Page that shows up the cards in your browser and where you can make some action with the cards (e.g. draw, show, flip etc. Javascript can help you manipulating and moving the images) Send this action to the Apache-Tomcat server (Ajax can help you, but is not necessary. A simple Submit-button will do for the beginning).
3.) Program the server in Java (JSP) that takes the action, computes the result (e.g. resulting cards or points) and sends these results to the browser as a new HTML-page.(Or Ajax-data which will be changing the current page then).

Basically, there is only one program running as gameserver on the rented host, and everybody can send their moves to this single program by his own browser, running on different PCs. (If you need groups of people playing different games in parallel, then you need to create playrooms, logins, parallel threads, synchronizations, restore-points etc. which is ways more complicated, so start with the easy stuff)
Jul 27 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed...
1
by: C-man | last post by:
Basically I want to create a battleship game that can be played by having two clients connect to it. I was wonder what the best networking principal would be. Basically I suppose I would have to...
14
by: BlackHawke | last post by:
My Name is Nick Soutter, I am the owner of a small game company, Aepox Games (We're in the middle of a name change from "Lamar Games"), www.lamargames.net. Our first commercial game,...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
1
by: diffuser78 | last post by:
I have to create a small and simple GUI app in Python which is similar to a netwrok game. Let me expalain you. I need some suggestions. I might use wxPython for GUI because that is the only GUI...
1
by: Andrew | last post by:
Hello Everyone I am receiving an error in an application I am working on. The application when its done will be a Dungeons and Dragons Network game. I am having problems with the Networked...
0
by: jesmi | last post by:
please provide me the function for determining bandwidth of my network from java or .jsp. thanks in advance!!!
0
by: ShadowPhantom000 | last post by:
I Am a Just recently Graduated High school student who took a Java class in school, and created a couple of simple network games... and am now learning c# but I Cant seem to find any good tutorials...
5
by: priteshdube | last post by:
hi frns, presently i am working on ad hoc networks.i have to establish a wireless network with 4 devices which are bluetooth enable.now i want to design an algorithm in java for the device...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.