Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. public Puzzle(Form1 form1)
  2. {
  3. buttons = new Button[3, 3] { { form1.button1, form1.button2, form1.button3 },
  4. { form1.button4, form1.button5, form1.button6 },
  5. { form1.button7, form1.button8, form1.button9 } };
  6. //button reference from form1
  7. }
  8. public void reset()
  9. {
  10. //reset all the colors of buttons in the puzzle to lime
  11. }
  12.  
  13. public void FlipCells(int row, int col)
  14. {
  15. //when certain button is clicked(this event is done in the form1.cs), say for (0,0) change color of cell (0,0),///(0,1) and (1,0) by calling changeColor method
  16. }
  17.  
  18. public void changeColor(int row, int col)
  19. {
  20. //test current color of the cell, and change it
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement