Skip to content

An interactive simulation of evolving artificial life (critters).

Notifications You must be signed in to change notification settings

snajima/CritterWorld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Critter World

(CS 2112 - Cornell University) Object-Oriented Design and Data Structures (Honors) Final Project

Unfortunately, the academic integrity policies at Cornell University prohibit making source code from course projects publically available. However, we have received permission from the instructor to share the repository with individual employers. Feel free to contact me, if you find this project interesting and wish to view the source code!

Critter World is a project that simulates a world of small agents–critters–with the goal to survive. These critters can move, eat, attack each other and even mate with other willing critters. Critters are also able to sense the nearest piece of food with a “smell” command, implemented with a modified version of Dijkstra's shortest path algorithm. Eventually, critters will also decease and turn into food themselves. The critter's health condition can be checked by clicking on a critter, as shown on the left sidebar below.

Each critter behaves according to a “Critter Program” unique to each critter. This program is written in the “Critter Language”—a context-free language—defined by the course staff which can be found in the detailed project spec below.

As part of the project, I wrote the fault injection to make random, small mutations to critters' genes when they reproduce, as well as the path-finding algorithm for critters to sense locations of food in their proximity.

the Critter Language Above is the formatting of the critter language.

Sample interface 1 Sample interface 2 Sample interface 3 Sample interface 4 Above are examples of the simuation of critters.

More detailed project spec can be found here.

About

An interactive simulation of evolving artificial life (critters).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published