This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

bourne
bourne presents ...

2013/12/12

UserInfo Battleship

Play Battleship with other users! First onsite user multiplayer game! With instant messenger after each match
Threw this together the past day or two.

** A SMALL NOTE **

If no one is in the scenario for you to play with, please comment below - asking for someone to join you
(I'd hate for you to not get a chance to play a match to completion and possibly do a bit of chatting with the instant messenger).

Needless to say, votes/likes are always appreciated.

In no way have I made any cheating ability, or given myself any sort of an advantage.
You can check the source. And any one of you can call me out on it if there is anything.
But I assure you there is none.
I would not risk the integrity of my game when it comes to user vs. user multiplayer.
Or high scores in any of my other scenarios.

Refreshing the page without quitting java first, or using the reset button - should not be done.

** USER SELECTION SCREEN **

User game status (middle column):
'R' means a user is requesting a game with you.
'G' means a user is in a game session or requesting a game with someone else.
'-' means neither.

Last Known Activity means the time since the scenario you are running last noticed the user was active/online
(typically >10 seconds means they left).

Can sort the list of users by the 3 buttons at the top
(Sort by the right-most 2 to get an idea of who is online or wanting to play with you)
(Note: scenario does not automatically keep list sorted as values change).

** PLAYING **

Important: pausing the scenario quits a game.

To place your ships, click and drag them.
While dragging a ship, you can press R to rotate it.

You have 45 seconds to place your ships
(not timed while waiting for game request to complete).
You have 15 seconds per turn.

Who goes first is randomized.

After a game has finished, you can chat with your opponent in an instant messaging session.
(You don't have to, you can just exit the game session, but most users might want to comment about the match)
Max message length is 200 characters.
A sent message must complete, before sending another (takes maybe a second).
You will be notified when your opponent leaves the session.

** TO DO **

When I have time, I will:
* Update the graphics.
* Add some sort of scoring - Win and Loss record (tricky considering possibility of a user leaving a game).


For reusable GUI Components, visit:
http://www.greenfoot.org/scenarios/7578

For a more general instant messenger, visit:
http://www.greenfoot.org/scenarios/10302

7314 views / 1209 in the last 7 days

19 votes | 0 in the last 7 days

Tags: game with-source 2-player battleship gui multiplayer userinfo messages bourne im messaging

This scenario is a member of: UserInfo Shares, UserInfo Multiplayer


open in greenfoot
Your browser is ignoring the <APPLET> tag.
HTML5 version not available | Scenario not running?
A new version of this scenario was uploaded on Thu Dec 19 06:09:55 UTC 2013 Fixing...
bournebourne

2013/12/19

All fixed now
A new version of this scenario was uploaded on Thu Dec 26 01:41:32 UTC 2013 Preparation for a project coming real soon
A new version of this scenario was uploaded on Sun Dec 29 03:49:32 UTC 2013 bug fix
A new version of this scenario was uploaded on Wed Jan 01 23:12:13 UTC 2014 List of users should be initially loaded and displayed before taking time to load userImages.
A new version of this scenario was uploaded on Wed Jan 01 23:24:17 UTC 2014 List of users should be initially loaded and displayed before taking time to load userImages.
JetLennitJetLennit

2014/1/2

Sorry about getting off suddenly earlier.... I had to do something important
bournebourne

2014/1/2

No worries
drhorriblejrdrhorriblejr

2014/3/16

Get on UserInfo Battleships and play with me!
drhorriblejrdrhorriblejr

2014/3/16

Or not... your choice.

See all comments

Want to leave a comment? You must first log in.

Who likes this?

Nosson1459 lordhershey herusaputra Pointifix MrHam RUMMAKER shrucis1 Cynical Gevater_Tod4711 Doge Super_Hippo SPower Busch2207 Game/maniac FlyingRabidUnicornPig erdelf JetLennit Entity1037 Kartoffelbrot