1.86667

1.9 | 15 ratings Rate this file 19 downloads (last 30 days) File Size: 1.6 KB File ID: #20435

ships

by M P

 

25 Jun 2008 (Updated 25 Jun 2008)

Code covered by BSD License  

Battle of the ships (simple version)

Download Now | Watch this File

File Information
Description

Pc build a black table 10x10 with 3 white positions: first position is a ship of one element, second and third position are a ship of two elements. Ships aren’t sticky, near ships there is sea (black elements). You can play with you, best winner to go out with 3 bombs. Happy pasttime!

MATLAB release MATLAB 6.1 (R12.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (16)
25 Jun 2008 John D'Errico

Gosh, if this actually had help, and a better interface, I'd be tempted to rate it a bit higher. Marco should be impressed with my 2 rating here. The web site description is (shock!) nearly readable.

Use of an interface where the user must respond to multiple prompts at the command line is poor in general.

The complete lack of help or any useful comments should push my rating to a 1, so maybe I've gone soft.

25 Jun 2008 Marco Pittaluga

olèèèèèèèèèèèèèè... 2 stars from John... incredibbbbbbble... temperature is very hot... you must be in the sun... next time 3 :) thanks... bye

25 Jun 2008 Ken Eaton

Just like John, I'm a bit torn between giving a 1 or a 2. On the one hand, my expectations of Marco have been so low that this is quite a surprise: it's a function (not a script), the description is halfway comprehensible, and the game may actually be interesting to some people. Compared to his previous submissions, this would get a 2.

However, I feel like I must rate this objectively, as I would any function from any author, without consideration of their previous work. In this case, I have to give it a 1 for the following reasons:

1) No H1 line or help comment block.

2) Some of the computation is very messy, with a lot of if/else statements. I have to think there is a more space-saving and elegant way to do things.

3) It may be a pet peeve of mine, but when it comes to games for MATLAB I think they should NEVER be run from the command line, only from a GUI. Running them from the command line means they are monopolizing control of the command window, keeping users from working on other things while they have the game open. Ideally, the game should exist in it's own figure window(s), never "damaging" the command window (either by clearing variables or plotting over other figures) and vice versa (insulated from 'clear (fill in blank)' commands).

4) There is already a battleship game on the FEX, and even though it is over 4 years old it is much better than this one (although still not perfect).

Good try though, Marco. It's always nice to see improvement.

Ken

26 Jun 2008 Will Rusch

Not good.

13 Dec 2008 alain boyer  
14 Dec 2008 Hal 9000  
13 Feb 2009 M P  
14 Feb 2009 V. Poor

Poor, very very poor.

14 Feb 2009 pitta  
18 Mar 2009 Jveer  
03 Jul 2009 James  
03 Jul 2009 C  
03 Jul 2009 Ripley  
03 Jul 2009 Bishop  
03 Jul 2009 newt  
03 Jul 2009 Hudson  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
games M P 22 Oct 2008 10:07:17
ships M P 22 Oct 2008 10:07:17
randperm M P 22 Oct 2008 10:07:17
pc M P 22 Oct 2008 10:07:17
battle M P 22 Oct 2008 10:07:17
simple M P 22 Oct 2008 10:07:17
spam Hal 9000 14 Dec 2008 14:50:00
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com