public static bool Equal( Panel p1, Panel p2 ) { for ( int i = 0; i < 4; i++ ) { if ( !Row.Equal( p1.Rows[i], p2.Rows[i] ) ) return false; } return true; }
public GameBoard( Panel startPanel, Panel targetPanel, int maxMovements ) { m_StartPanel = startPanel; m_TargetPanel = targetPanel; m_MaxMovements = maxMovements; }
public void Reset() { m_GamePanel = m_StartPanel.Clone(); m_CurrentMovements = 0; }
private void DrawPanel( Panel panel, int xBase, int yBase ) { for ( int i = 0; i < 4; i++ ) DrawRow( panel.Rows[i], xBase, yBase + ( i * 33 ) ); }