How to add a pictureBox in a matrix C# ?

Code of the matrix generation class: https://hastebin.com/moyorucilo.cs

Code of the main class: https://hastebin.com/oxogizeweb.cs

This code is genereting a random number of stones and wooden logs at a random poxsition. When I click a stone (or a log) it appears me Take control. When I click that Take it deletes me a stone (or a log) until a variable equals to 10. For each resource that I delete from gameboard, I have to put that resource in a matrix.

I don’t know what’s wrong with my code.

submitted by /u/iAmStefan1
[link] [comments]

Leave a Reply