I have a card with different instance variable containing value of its suit , rank and colour. Now, whenever i will drop that card at a different position , i want to delete those values from an array stored at same x but different y.
Develop games in your browser. Powerful, performant & highly capable.
Stored at the same x as what? You didn't give enough info about how you are using the array.