This is a project adopted from UC Berkeley’s CS 61A’s Ants Vs. SomeBees. It is a tower defense game inspired by PopCap’s Plants vs Zombie and is implemented using functional and object-oriented programming paradigms in Python. The game assets and engine are already provided, I simply implemented the game logic for each role of ant army. (The food cost for ninja ants has been reduced to zero in order to make the game more balanced.)
This is the link to the Berkeley CS 61A website hosting the Ants Vs. SomeBees Project that contains the description of the game resources and the specification for the precise implementation of each role of ants: https://cs61a.org/proj/ants/
To start the game, clone the git repository and open up the command prompt, then go to the downloaded repository folder and choose one of the following command to paste it on the command prompt.
To start a text-based game, run
python3 ants.py
To start a graphical game, run
python3 gui.py
To start an older version of the graphics, run
python3 ants_gui.py
To play the game, simply right click on the ant and right click on an empty game tile in order to place the ants. The description of the different roles of ants is introduced in the project link above.