public FindBestMovementTest() { _findBestMovement = new FindBestMovement(null); _currentGameId = Guid.NewGuid(); _memory = new List <Layout>() { new Layout(new[] { 'X', 'O', '\0', '\0', '\0', '\0', '\0', '\0', '\0', }, _currentGameId, 2, 1), new Layout(new[] { 'X', 'O', '\0', '\0', 'X', '\0', '\0', '\0', '\0', }, _currentGameId, 3, 4), new Layout(new[] { 'X', 'O', 'O', '\0', 'X', '\0', '\0', '\0', '\0', }, _currentGameId, 4, 2), new Layout(new[] { 'X', 'O', 'O', '\0', 'X', '\0', '\0', '\0', 'X', }, _currentGameId, 5, 8), }; _memory.ForEach(i => i.Win(true)); _computerBrain = new ComputerBrain(_memory); }
private void CreateInteligence() { _inteligence = new FindBestMovement(); }