Computer Science Canada

Network Battleship gr 12 computer science project

Author:  Br1ck [ Fri May 21, 2010 12:02 pm ]
Post subject:  Network Battleship gr 12 computer science project

two player battleship over any network 2 game modes normal and fast. Normal 1 attack per round, fast one attack per remaining ship per round.


The visual join screen was designed to be used in our computer lab but and ip can be manually entered there.

enjoy

Author:  Br1ck [ Fri May 21, 2010 1:36 pm ]
Post subject:  Re: Network Battleship gr 12 computer science project

whatcha think?

Author:  Scott [ Fri May 21, 2010 1:40 pm ]
Post subject:  Re: Network Battleship gr 12 computer science project

Hey, it looks like you did alot of work, by looks of your code.
My classmates and I tried to connect this because we are trying to make networked games also,
We have a small problem, the error is, "-10 is not a legal net stream id".
If you get this working we would like to learn from it.

Thanks, Scott

Author:  Br1ck [ Fri May 21, 2010 8:31 pm ]
Post subject:  Re: Network Battleship gr 12 computer science project

should work fine has been tested many times. Just make sure your typing in the proper ip for the computer you wish to connect to and that it is in host mode before someone tries to join.

Author:  livingheaven [ Tue May 25, 2010 9:17 pm ]
Post subject:  RE:Network Battleship gr 12 computer science project

.. Good try..The program crashes when you the screen is set at a higher resolution.. Try not to use max,max

Author:  supaphreek [ Wed Jun 02, 2010 11:37 am ]
Post subject:  RE:Network Battleship gr 12 computer science project

@ Scott. The reason it wont work with your class is because if you take a look at the file EstablishConnection.t, you will notice that the IP's are preconfigured. That means that its the IP's of the computers in Br1cks class.

So all you have to do is switch the IP's and it should work fine Smile

Author:  InfectedWar [ Thu Jun 03, 2010 10:37 pm ]
Post subject:  RE:Network Battleship gr 12 computer science project

Works fine, just make sure you are connected in a Local Area Network and type in the ip's in the join screen.

Author:  InfectedWar [ Thu Jun 03, 2010 10:46 pm ]
Post subject:  RE:Network Battleship gr 12 computer science project

The Reason the manual Ip join won't work is because Br1ck is using the older Establish Connection file.. The Old version takes the first input from the keyboard and doesn't display it on the screen, thus the user thinking nothing happened. So the user enters the same number again and wonders why the join ip didn't work.

Example the start of the ip is 213

the user enters 213 but on the screen they only see 13 but inside the variable it's currently has the info. 213

Keep that in mind when you type the ip address in this version and it shouldn't mess up.


: