Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: ASCII Battleship Programby perlStuck (Sexton) |
on Feb 04, 2012 at 15:25 UTC ( [id://951813]=note: print w/replies, xml ) | Need Help?? |
Yeah, I think I found a partial solution at least. It would appear that two of the conditionals that would allow the return of a properly placed ship was faulty. In 'sub place_ship' there's a line that reads:
Changing it to: That seems to work.
In Section
Cool Uses for Perl
|
|