davidswelt / wolvesandsheep

Wolves And Sheep
8 stars 7 forks source link

Add getWolfPositions() #15

Closed corygehr closed 9 years ago

corygehr commented 9 years ago

Sometimes I've noticed you like to add multiple wolves in a game for the final demonstration. I thought this may be helpful since getWolfPosition() only returns a single wolf, and thus could put Sheep at a disadvantage if they aren't aware of the others (although arguably, a good Sheep may look at the GamePiece objects surrounding it).

davidswelt commented 9 years ago

Good point, however, I never use more than one wolf in the actual tournament.
It’s really just a demo. They have to take care of a lot of eventualities as it is…

Also, sheep aren’t at a disadvantage, because they’re not running against the wolves in the tournament. They’re running against the other sheep.

I think we could have a function that gets all players everywhere… don’t we have this already?

On Mar 26, 2015, at 8:07 PM, Cory Gehr notifications@github.com wrote:

Sometimes I've noticed you like to add multiple wolves in a game for the final demonstration. I thought this may be helpful since getWolfPosition() only returns a single wolf, and thus could put Sheep at a disadvantage if they aren't aware of the others (although arguable, a good Sheep may look at the GamePiece objects surrounding it).

You can view, comment on, or merge this pull request online at:

https://github.com/davidswelt/wolvesandsheep/pull/15

Commit Summary

• Add getWolfPositions() File Changes

• M src/was/GameBoard.java (9) Patch Links:

https://github.com/davidswelt/wolvesandsheep/pull/15.patchhttps://github.com/davidswelt/wolvesandsheep/pull/15.diff — Reply to this email directly or view it on GitHub.

corygehr commented 9 years ago

Ah you're right, there is one there. That should be fine then!