Form.h
chessPlayer.cs
ColorLevelForm.cs
This line of code:
Expand|Select|Wrap|Line Numbers
- ChessPlayer chessGame = new ChessPlayer();
That same line of code in ColorLevelForm.cs also allows me to access variables and arrays in Chessplayer(). The problem is that two separate variable sets are created by the code in each file when I run the program. If I store a number in ‘PlyMax’ (a public variable in chessPlayer.cs) with the ColorLevelForm.cs code, That same variable remains unchanged in Form.h! Let me know if you need more detailed info the help me solve this problem.
Thank you
Dan