I want to create a little "game" in c#. For the game I need a field, where you can move. Now I want to create a 2d array (or 2d list) and display it with wpf, but I dont know how. I want to set the field size in C# and generate the gamefield random in C#.
Can someone of you give me a hint, how I can display a 2d array (or 2 list) in wpf and fill the cells with different colors?
It would be nice if you can show me a little code snipped (for understanding maybe).
Here is a little pic:
I searched a lot, but didn't find something usefull.