Exemplo n.º 1
0
		public new DraughtsPatternCollection GetAllPatternsWithIdentifer( string identifier )
		{
			DraughtsPatternCollection unit = new DraughtsPatternCollection();

			for( int i=0; i<Patterns.Count; i++ )
			{
				if( ( ( DraughtsPattern )Patterns[ i ] ).StartsWith( identifier ) == true )
				{
					/// note do not use copy constructor here moron.
					/// 

					unit.AddPattern( ( ( DraughtsPattern )Patterns[ i ] ) );
				}
			}

			return unit;
		}
Exemplo n.º 2
0
		public DraughtsGame()
		{
			//
			// _TODO: Add constructor logic here
			//

			historicalPatterns = new DraughtsPatternCollection();
			gamePatterns = new DraughtsPatternCollection();
			availablePatterns = new DraughtsPatternCollection();
			collection = new FuzzyDecisionSetCollection( "Draughts Decisions" );
			processMoves = new DraughtsProcessMoves();
			nMoveNumber = 0;
			bPieceTaken = false;
			
		}