I'm hoping to use reinforcement learning to learn beast behaviour, which will hopefully lead to more interesting gameplay (and is far more interesting than dreaming up and implementing heuristics!).
Please mail me if you have any comments or suggestions.
Thanks to Fergus for help with the grotty setgid wrapper stuff.
![]() |
The player. |
![]() |
A Light Block. Can be pushed around by the Player, and Hatched Super Beasts. |
![]() |
A Heavy Block. Cannot be moved, may be explosive (i.e. if the Player contacts one, it dies, and Light Blocks pushed towards it are destroyed.). |
![]() |
A basic Beast - can be squashed between any two blocks. |
![]() |
A Super Beast. Can only be squashed against a HeavyBlock. |
![]() |
An Egg. Hatches into a Hatched Super Beast. |
![]() |
A Hatched Super Beast. Can push blocks around. |
Random
class was stolen lock-stock from the
GNU
Classpath project. Be kind to it.
BEASTS. Copyright (C) 2002 Peter Gammie (peteg42@gmail.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA