Re: Another Error or my Misinterpritation?

[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by William D McQuain on April 17, 2001 at 16:25:13:

In Reply to: Another Error or my Misinterpritation? posted by Robert Hoffman on April 16, 2001 at 16:50:19:

In the scenario below, on tick #8, Tom entered a square and then Thumper entered the same square. As per the spec, Tom does not attack Thumper at that time.

On tick #9, Tom is updated before Thumper, so when Tom updates, Thumper is still in the same square. Also, when Tom updates he does not move to a new square. So, the question is: does Tom attack on a "no move" update?

Obviously in my implementation he does. That's somewhat simpler to handle since you don't have to check for whether Tom actually moved or not before deciding what to munch.

Officially, the behavior shown here is the correct behavior.

: The following was cut and pasted strait fromt the SampleKillDataLog.txt as posted for program checking...

: ******************************************************
: Command 30: status Tom
: Grendel Tom 42 (6, 7)
: ----------------------------------------------
: Command 31: status Lunch
: Life form not found: Lunch
: ----------------------------------------------
: Command 32: status Munch
: Browser Munch 54 (6, 7)
: ----------------------------------------------
: Command 33: create browser Thumper 20 6 7
: Added a Browser.
: ----------------------------------------------
: Command 34: tick 3
: --------------- tick number: 8
: Tom moved east
: Munch moved south
: Thumper moved east
: --------------- tick number: 9
: Tom gonna munch Thumper
: Munch moved east
: *******************************************************

: The question becomes, Tom -grendel- is located at (6,7) when Thumper -browser- is created. On the first simulation tick, Tom moves first -east-, then Thumper moves -east also-. No problem yet.

: Next turn, Tom does not move, but eats thumper. Problem. Thumper is as called "dumb food". He moved in after Tom, and Tom did not move into him.

: I was under the impression that dumb food was not to be eaten. Is this an exception that should be accounted for? More curious then anything right now.

: Thanks to whomever can answere.

Follow Ups:

Post a Followup




Optional Link URL:
Link Title:
Optional Image URL:

[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]