Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// Creates the dimensions for the cases
- /// </summary>
- public Case()
- {
- MaximumSize = new Size(50, 50);
- MinimumSize = new Size(50, 50);
- }
- /// <summary>
- /// Creates the background for the cases
- /// </summary>
- public enum DifferentCase
- {
- Dark,
- Pale,
- Brown
- }
- /// <summary>
- /// Creates the tokens
- /// </summary>
- public enum Token
- {
- Nothing,
- White,
- Black
- }
- public DifferentCase ColorCase { get; set; }
- public Token ColorToken { get; set; }
- public bool IsBlack { get; set; }
- private void CheckPoints(Case cases)
- {
- foreach (Case case_ in cases.Controls)
- {
- if (case_.ColorToken == Case.Token.Black)
- {
- _player1Points++;
- lbl_player1Points.Text = _player1Points.ToString();
- }
- else if (case_.ColorToken == Case.Token.White)
- {
- _player2Points++;
- lbl_player2Points.Text = _player2Points.ToString();
- }
- }
- }
Add Comment
Please, Sign In to add comment