Hi I have an assignment, probably easy for a lot of you but im new to this programming and trying to understand little by little.
Assignment
You are to create and fully test a class soldier which has the following attributes:
int id
char type
int speed
int initiative
int atk
int def
double Loc[2]
the Loc is the x,y location of a soldier, so Loc[0]=x location from -100 to 100
Loc[1]=y location from -100 to 100
Im at a lost for the location part. I dont even know how to start it. Im not very good at programming but love to learn it. If anyone can tell me if im going in the right direction and give me inputs would greatly be appriciated.
Im not asking to do my assignment but if you so wish give a line of codes please explain it so I can better understand. I dont have 30 year of experience so I wont understand if you go too deep into it