Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 532 Bytes

README.md

File metadata and controls

17 lines (9 loc) · 532 Bytes

Ant-OOP

Project about ant with ability to roam around

Please note that this code will require graphics.h directory

This contains only one class, the ant class. This class can renders 'ant' in the windows, and sets the movement of the ants. When summons, ant will roams randomly. When this class created, user can assign the spawn point of the ant. This class has some function:

#Constructor: set the spawn point and first target

#SetNewPoint(): set new target

#Process(): move the ant

#Draw(): draw the ant on the windows