craigmart-in / cisc370-finalproject

Automatically exported from code.google.com/p/cisc370-finalproject
0 stars 0 forks source link

Timeout or Hitting issue #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Play blackjack
2. Once asked to hit wait for a minute or 2 then say 'y' and hit enter (did not 
bust when done)
3. When asked to hit again say 'n'

What is the expected output? What do you see instead?
-Expected: To end hand
-What happens: Hits again.  If you say 'n' again (if not busted already) it 
hits again.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by laxgee...@gmail.com on 9 May 2011 at 5:52

GoogleCodeExporter commented 9 years ago
I believe that this is a timeout issue.  I tried it again and once the hand is 
over and it asks if I want to play this round of blackjack and type 'y', get an 
error that says:
Exception in thread "main" java.net.SocketException: Software caused connection 
abort: recv failed
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(Unknown Source)
    at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
    at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
    at sun.nio.cs.StreamDecoder.read(Unknown Source)
    at java.io.InputStreamReader.read(Unknown Source)
    at java.io.BufferedReader.fill(Unknown Source)
    at java.io.BufferedReader.readLine(Unknown Source)
    at java.io.BufferedReader.readLine(Unknown Source)
    at game.client.GameClient.main(GameClient.java:23)

Original comment by laxgee...@gmail.com on 9 May 2011 at 5:53

GoogleCodeExporter commented 9 years ago
Similar issue on GUI version, however here it hits for you if you don't answer 
in about 30 seconds.  Is this what we want? Shouldn't it not hit, thus ending 
your turn?

Original comment by laxgee...@gmail.com on 9 May 2011 at 4:00

GoogleCodeExporter commented 9 years ago
This isn't correct we want it to NOT hit if you just sit there, your hand is 
already dealt so you can't leave the table either.

Original comment by laxgee...@gmail.com on 10 May 2011 at 2:38

GoogleCodeExporter commented 9 years ago

Original comment by cmgec...@gmail.com on 10 May 2011 at 4:54

GoogleCodeExporter commented 9 years ago
Fixed issue. Now it doesn't auto hit when it times out.

Original comment by laxgee...@gmail.com on 11 May 2011 at 1:02

GoogleCodeExporter commented 9 years ago
Seems to be working fine now.

Original comment by cmgec...@gmail.com on 12 May 2011 at 4:12