Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
a treasure hunt game where a m*n grid is there and we have to find the adjency grid of that grid having treasure
Posted

1 solution

easy - write some code

think about your grid as an (m x n) matrix of (possibly) integers, maybe one value for an integer represents nothing in the cell, one value represents treasure, and searching through that looking for all the numbers that represent 'treasure'

post back when you have a specific issue, other than 'please do my work for me'
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900