I'm comparatively new to C# -language and have studied it only about a month at school till this day. I'm trying to create simple Tic - Tac - Toe game for a Windows Mobile phone, where the game area is set of buttons. I read from this site (Stackoverflow) that C# is strongly typed language and it's not possible to create variables dynamically.
My game area buttons are named as button1, button 2, button3, etc and there's a statistics in int[] -array for the checking the game results. How should I loop the buttons for legal move? I've planned to use buttonX.Content.Equals("X") and so on, but how can I loop the buttons since dynamic variables are not allowed?
Is it possible to create an array containing only references to the button -objects in the memory, and check the values in for each -loop then?