hi i need help with my class assignment we're suppose to create a 4*5 grid, two player and three enemies. the grid is made up of coordinates and i am not allowed to use arrays. To start the game the players must enter their names and then go to (0,0). the aim of the game is for the players to reach (4,3) end of grid without being eatten from the enemies who are randomly place on the grid.If eatten game over you lose, if player reaches(4,3) you won. How would you approach this assignment. (not allowed to use arrays) Thanks in advance :)
Sadiiiiiiiiee
0
Newbie Poster
Recommended Answers
Jump to PostMake each player a struct with say a Name,Xcoord and Ycoord.
All 4 Replies
Sadiiiiiiiiee
0
Newbie Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
L7Sqr
227
Practically a Master Poster
cgeier
187
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.