• Post Reply Bookmark Topic Watch Topic
  • New Topic

infinite loop  RSS feed

 
Olliver Lim Kam Sian
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i'm trying to get this game code to work in my client and server program.After connection the server ask the client to play the game but when i enter a number in the client window, it gives me the IOexception and ask me to guess the number again and again till it blocks.
Can any one help me?


EDIT by mw: Added Code Tags.
[ October 19, 2007: Message edited by: marc weber ]
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use Code Tags when posting code. Thanks!
 
Liam Tiarnach
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I noted that you declared a BufferedReader for getting user input, but then you are using this

on the line you are trying to get the input from...

If the BufferedReader In is the input source then you will need to change your code to use it.

i.e.


[ October 20, 2007: Message edited by: Liam Tiarnach ]
[ October 20, 2007: Message edited by: Liam Tiarnach ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!