From: "Michael Oczkowski" <moczkowski@stuart.iit.edu>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: MATLAB Programming Contest: November 29-Decemb
Message-ID: <ef472c3.13@webcrossing.raydaftYaTP>
Date: Wed, 29 Nov 2006 16:46:14 -0500
References: <ef472c3.-1@webcrossing.raydaftYaTP> <ef472c3.11@webcrossing.raydaftYaTP> <ef472c3.12@webcrossing.raydaftYaTP>
Lines: 12
NNTP-Posting-Host: 206.195.193.254
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:381141



Let's say I have the following grid.

     0 0 0 0
     0 0 0 0
     1 0 0 0
     0 2 0 0

If I send a beam into the bottom right corner from the left, i.e.
beam(4,0), it should be reflected b/c there is an object on the edge
adjacent to it. Ditto for sending it from the bottom, i.e.
beam(0,-1). The scores are different, though (1 & 2, respectively).
Can someone explain why?