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

Comments for UserInfo Battleship

Return to UserInfo Battleship

bournebourne

2013/12/13

Also, without considering a possible chat ability, do you think 15 seconds is reasonable for a turn? I guess something like 30 seconds isn't bad. Just didn't want one user waiting forever for the other.
Entity1037Entity1037

2013/12/13

Tricking you into showing me where your ships aren't isn't a very good strategy after all...
bournebourne

2013/12/13

Nice playing with you Entity1037, was funny when you were mimicking my positions, I ended up avoiding all my ships =)
bournebourne

2013/12/13

Yeah, by the time it is useful, I already have lead on you
GG Entity, Holy crap, that was really close :D Great game bourne!
bournebourne

2013/12/13

Thanks =)
bournebourne

2013/12/13

Anyone want to play?
bournebourne

2013/12/13

@Busch2207, that must of been my luckiest game!
Busch2207Busch2207

2013/12/13

Very nicely done! :D
bournebourne

2013/12/13

Thanks =)
Entity1037Entity1037

2013/12/14

SOOO CLOSE BOURNE!
bournebourne

2013/12/14

Craziest battleship match! Came down to last corner of grid on the patrol boat for both of us! =)
bournebourne

2013/12/14

Anyone not played yet, want to play me?
SPowerSPower

2013/12/14

Yes!
SPowerSPower

2013/12/14

How do you rotate ships?
SPowerSPower

2013/12/14

Sorry bourne i had to go :(
DogeDoge

2013/12/14

Can I play you?
DogeDoge

2013/12/14

Ahhh! Good game, That was intense!
SPowerSPower

2013/12/14

FRUP that was tense! GG
GG SPower, I thought I would win finally.
SPowerSPower

2013/12/14

It's mostly luck, with a bit of strategy. Maybe practising will get you there.
SPowerSPower

2013/12/14

GG bourne, SO CLOSE
bournebourne

2013/12/14

Yeah GG, finding your smaller ships early helped narrow the playing field much faster
bournebourne

2013/12/14

Good game Game/maniac, took me forever to start finding your ships =)
Game/maniacGame/maniac

2013/12/14

Really good, how would your game cope though if someone closed the browser during the game? Does the game have and AFK system, where if the user has not made a move for a certain amount of time the game ends?
bournebourne

2013/12/14

That is on my to-do list. Unfortunately you get stuck in the game if your opponent leaves. Should have something to cope with that in next update
bournebourne

2013/12/14

So for now, be nice and don't quit on somebody.
Game/maniacGame/maniac

2013/12/14

yeah I just tested what happens and if you refresh while in a game the user list disappears.
shrucis1shrucis1

2013/12/14

Hey, bourne, I'm a little confused, what does it mean when I see three users that are in the middle of a game? Shouldn't there always be an even number of users in the middle of a game?
bournebourne

2013/12/14

@shrucis1, it is a flaw of not having it check if they have been active recently. (will be fixed in next update) It occurs when someone was requesting or was in middle of game and left the scenario.
shrucis1shrucis1

2013/12/14

Ah, I see. Basically, the program can't detect that the user is leaving the page to change the current 'status' so when it closes, that status is left that way? That's my understanding of the problem, but then again, I could be wrong. Do you know how to fix this? Or is it just on your To-do list? It's still impressive that you managed to create an online game though.
bournebourne

2013/12/14

@shrucis1, exactly right. In next update it will show '-' if the last known activity time for that user is > 20 seconds or so
bournebourne

2013/12/14

@shrucis1, also it displays 'G' if the user is requesting a game with someone other than you. I will update the description here soon
bournebourne

2013/12/14

That was close =)
shrucis1shrucis1

2013/12/14

@bourne, Intense game! It came down to the last shot, and I just barely won.
bournebourne

2013/12/14

Let me get this update finished up
danpostdanpost

2013/12/14

Glad to see you lost one, bourne (not that I really wish that upon you). It would be easy to program a cheat for the maker in a game like this (if ("borne" is username) show opponents ships).
bournebourne

2013/12/14

@danpost, right but I have the source available so you can see how it works. Not only is there no such cheat ability, ship locations are not sent (works much like the physical game). I will be implementing a reveal enemy ship feature for when you lose (when the game is over, remaining locations will be sent)
SPowerSPower

2013/12/14

I was already waiting for that actually! I can't wait!
A new version of this scenario was uploaded on Sat Dec 14 20:37:09 UTC 2013 * Should no longer see game status for users that left the scenario. * If a user leaves, you won't be stuck in the game (still please don't quit on somebody). * Can now sort list of users by the 3 criteria (note: does not automatically keep it sorted as values change). * When lose, opponent's ship locations are revealed. (Hopefully I didn't break anything, can't test much off-site)
shrucis1shrucis1

2013/12/14

The update is finally here! :D
shrucis1shrucis1

2013/12/14

bourne, the location reveal didn't work for me. It just put a box around all of my hits.
shrucis1shrucis1

2013/12/14

Also, it seems that when I try to use the buttons, it freezes and gets all glitchy; however, this could just be because I'm also running some python programs in the background.
bournebourne

2013/12/14

One minute, I found a few things wrong.
shrucis1shrucis1

2013/12/14

Yeah, also, after I clicked the button, now I can't see any users. I probably just don't know how to work the sorting system, but you should probably edit the description to include new instructions.
A new version of this scenario was uploaded on Sat Dec 14 20:47:08 UTC 2013 One fix. And isolating bugs, (buttons taken away for now).
A new version of this scenario was uploaded on Sat Dec 14 20:52:57 UTC 2013 Fix: Revealing ship locations to losing user.
A new version of this scenario was uploaded on Sat Dec 14 21:06:49 UTC 2013 Revealing ship locations to losing user works now. Don't use the buttons on user list screen until I say they work.
A new version of this scenario was uploaded on Sat Dec 14 21:09:46 UTC 2013 No users in list fix
bournebourne

2013/12/14

Buttons still don't work, don't use them