https://github.com/iliyalb/bluej-fox-rabbit
🦊 BlueJ life simulation project for university
https://github.com/iliyalb/bluej-fox-rabbit
bluej java oop simulation
Last synced: 7 months ago
JSON representation
🦊 BlueJ life simulation project for university
- Host: GitHub
- URL: https://github.com/iliyalb/bluej-fox-rabbit
- Owner: iliyalb
- License: unlicense
- Created: 2019-01-15T10:19:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-14T05:52:15.000Z (over 2 years ago)
- Last Synced: 2023-07-14T06:25:18.955Z (over 2 years ago)
- Topics: bluej, java, oop, simulation
- Language: Java
- Homepage:
- Size: 227 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Foxes and Rabbits

Project: foxes-and-rabbits-graph
Authors: Michael Kölling and David J. Barnes
This project is part of the material for chapter 10 of the book
Objects First with Java - A Practical Introduction using BlueJ
Fifth edition
David J. Barnes and Michael Kölling
Pearson Education, 2012
A predator-prey simulation involving foxes and rabbits in
an enclosed rectangular field.
This is the first version of the simulation. This version
does not use inheritance.
## How to use
Create a Simulator object inside Bluej.
Then call one of:
+ simulateOneStep - for a single step.
+ simulate - and supply a number (say 10) for that many steps.
+ runLongSimulation - for a simulation of 500 steps.
Or use the release version `foxes-and-rabbits-graph.jar` file.