diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..feb0383333e912f42b6c150b81512e9ee03d8893 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +################################################################################ +# This .gitignore file was automatically created by Microsoft(R) Visual Studio. +################################################################################ + +/temp/x64/Debug +/x64/Debug +/.vs +/StrategyBase/Debug +/Debug diff --git a/StrategyBase/StrategyBase.vcxproj b/StrategyBase/StrategyBase.vcxproj new file mode 100644 index 0000000000000000000000000000000000000000..de3d336098f3a581b61bc6ceff3688040626a214 --- /dev/null +++ b/StrategyBase/StrategyBase.vcxproj @@ -0,0 +1,163 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <VCProjectVersion>16.0</VCProjectVersion> + <Keyword>Win32Proj</Keyword> + <ProjectGuid>{a1e4278e-b12c-48d1-8bfb-dd4a74ca311a}</ProjectGuid> + <RootNamespace>StrategyBase</RootNamespace> + <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>true</UseDebugLibraries> + <PlatformToolset>v142</PlatformToolset> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>false</UseDebugLibraries> + <PlatformToolset>v142</PlatformToolset> + <WholeProgramOptimization>true</WholeProgramOptimization> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <UseDebugLibraries>true</UseDebugLibraries> + <PlatformToolset>v142</PlatformToolset> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>false</UseDebugLibraries> + <PlatformToolset>v142</PlatformToolset> + <WholeProgramOptimization>true</WholeProgramOptimization> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + </ImportGroup> + <ImportGroup Label="Shared"> + </ImportGroup> + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <LinkIncremental>true</LinkIncremental> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <LinkIncremental>false</LinkIncremental> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <LinkIncremental>true</LinkIncremental> + <OutDir>$(SolutionDir)bin\$(Platform)\$(Configuration)\</OutDir> + <IntDir>$(SolutionDir)temp\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <LinkIncremental>false</LinkIncremental> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <WarningLevel>Level3</WarningLevel> + <SDLCheck>true</SDLCheck> + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ConformanceMode>true</ConformanceMode> + </ClCompile> + <Link> + <SubSystem>Console</SubSystem> + <GenerateDebugInformation>true</GenerateDebugInformation> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <WarningLevel>Level3</WarningLevel> + <FunctionLevelLinking>true</FunctionLevelLinking> + <IntrinsicFunctions>true</IntrinsicFunctions> + <SDLCheck>true</SDLCheck> + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ConformanceMode>true</ConformanceMode> + </ClCompile> + <Link> + <SubSystem>Console</SubSystem> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <OptimizeReferences>true</OptimizeReferences> + <GenerateDebugInformation>true</GenerateDebugInformation> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <ClCompile> + <WarningLevel>Level3</WarningLevel> + <SDLCheck>true</SDLCheck> + <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ConformanceMode>true</ConformanceMode> + </ClCompile> + <Link> + <GenerateDebugInformation>true</GenerateDebugInformation> + <IncrementalLinkDatabaseFile>$(IntDir)$(TargetName).ilk</IncrementalLinkDatabaseFile> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <ClCompile> + <WarningLevel>Level3</WarningLevel> + <FunctionLevelLinking>true</FunctionLevelLinking> + <IntrinsicFunctions>true</IntrinsicFunctions> + <SDLCheck>true</SDLCheck> + <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ConformanceMode>true</ConformanceMode> + </ClCompile> + <Link> + <SubSystem>Console</SubSystem> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <OptimizeReferences>true</OptimizeReferences> + <GenerateDebugInformation>true</GenerateDebugInformation> + </Link> + </ItemDefinitionGroup> + <ItemGroup> + <ClInclude Include="src\Cell.h" /> + <ClInclude Include="src\CMap.h" /> + <ClInclude Include="src\interface_lib.h" /> + <ClInclude Include="src\Player.h" /> + <ClInclude Include="src\Region.h" /> + <ClInclude Include="src\Strategy.h" /> + <ClInclude Include="src\StrategyBase.h" /> + </ItemGroup> + <ItemGroup> + <ClCompile Include="src\Cell.cpp" /> + <ClCompile Include="src\CMap.cpp" /> + <ClCompile Include="src\Player.cpp" /> + <ClCompile Include="src\Region.cpp" /> + <ClCompile Include="src\strategy.cpp" /> + <ClCompile Include="src\StrategyBase.cpp" /> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project> \ No newline at end of file diff --git a/StrategyBase/StrategyBase.vcxproj.filters b/StrategyBase/StrategyBase.vcxproj.filters new file mode 100644 index 0000000000000000000000000000000000000000..028586526d0f6a0917dc466e40da23b18a0fe434 --- /dev/null +++ b/StrategyBase/StrategyBase.vcxproj.filters @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Source Files"> + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> + <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> + <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> + </Filter> + </ItemGroup> + <ItemGroup> + <ClInclude Include="src\interface_lib.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="src\Strategy.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="src\StrategyBase.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="src\Cell.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="src\CMap.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="src\Player.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="src\Region.h"> + <Filter>Header Files</Filter> + </ClInclude> + </ItemGroup> + <ItemGroup> + <ClCompile Include="src\strategy.cpp"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="src\StrategyBase.cpp"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="src\Cell.cpp"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="src\CMap.cpp"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="src\Player.cpp"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="src\Region.cpp"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> +</Project> \ No newline at end of file diff --git a/StrategyBase/src/CMap.cpp b/StrategyBase/src/CMap.cpp new file mode 100644 index 0000000000000000000000000000000000000000..0d13d600aa524b54aa5bc66ac86666efd6497253 --- /dev/null +++ b/StrategyBase/src/CMap.cpp @@ -0,0 +1,172 @@ +#include "CMap.h" +#include <iostream> +#include "Cell.h" + +CMap::CMap(const SMap* map) +{ + nbRegions = 0; + nbCells = map->nbCells; + cells.resize(map->nbCells); + + for (unsigned int i = 0; i < map->nbCells; i++) { + Cell *newCell = new Cell(map->cells[i].infos.id, map->cells[i].infos.owner, map->cells[i].nbNeighbors, map->cells[i].infos.nbDices); + + newCell->neighbors.resize(newCell->nbNeighbors); + for (unsigned int j = 0; j < newCell->nbNeighbors; j++) { + newCell->neighbors[j] = cells[map->cells[newCell->id].neighbors[j]->infos.id]; + } + + cells[i] = newCell; + } + for (unsigned int i = 0; i < nbCells; i++) { + for (unsigned int j = 0; j < cells[i]->nbNeighbors; j++) { + cells[i]->neighbors[j] = cells[map->cells[i].neighbors[j]->infos.id]; + } + } +} + +CMap::~CMap() +{ + for (auto& cell : cells) { + delete(cell); + } + + for (auto& region_pair : regions) { + for (auto& region : region_pair.second) { + delete(region); + } + } +} + + +void CMap::FindConnexComponent(int idPlayer) +{ + int* MarkedCells = new int[nbCells]; + for (unsigned int i = 0; i < nbCells; i++) MarkedCells[i] = 0; + + std::vector<Region*> vec_regions; //Vecteur de composantes connexes + + for (unsigned int i = 0; i < nbCells; i++) { + if (cells[i]->owner == idPlayer && MarkedCells[i] == 0) { + //On a trouv� une cellule appartenant � idPlayer et on calcule sa composante connexe associ�e + std::vector<Cell*> vec_region; + + std::function<void(Cell*)> CalculRegion; + CalculRegion = [this, &MarkedCells, &vec_region, &CalculRegion, idPlayer](Cell* cell) { + vec_region.push_back(cells[cell->id]); + MarkedCells[cell->id] = 1; + + for (unsigned int j = 0; j < cell->nbNeighbors; j++) { + if (cell->neighbors[j]->owner == idPlayer && MarkedCells[cell->neighbors[j]->id] == 0) { + CalculRegion(cell->neighbors[j]); + } + } + }; + + CalculRegion(cells[i]); + vec_regions.push_back(new Region(vec_region)); + std::sort(begin(vec_regions), end(vec_regions), [](Region* reg1, Region* reg2) {return (reg1->r_cells.size() > reg2->r_cells.size()); }); + } + } + regions[idPlayer] = vec_regions; + delete[](MarkedCells); +} + +std::pair<std::vector<Cell*>, int> CMap::DijkstraAlgo(Cell* cell_depart, Cell* cell_arrivee) +{ + int id_player = cell_depart->owner; + const int nbDices_depart = cell_depart->nbDices; + int sum_nbDices = 0; + for (unsigned int i = 1; i < cell_depart->nbDices; i++) { sum_nbDices += i; }; + + auto cmp = [](std::pair<Cell*, std::pair<std::vector<Cell*>, int>> cell1, std::pair<Cell*, std::pair<std::vector<Cell*>, int>> cell2) { + return (cell1.second.second < cell2.second.second); + }; + + //Queue contenant les cellules et leurs distances associ�es + std::priority_queue<std::pair<Cell*, std::pair<std::vector<Cell*>, int>>, std::vector<std::pair<Cell*, std::pair<std::vector<Cell*>, int>>>, decltype(cmp)> queue(cmp); + + //Pour checker si on a d�j� trait� la cellule + std::vector<Cell*> visited_cells; + + std::pair<Cell*, std::pair<std::vector<Cell*>, int>> initial_cell, current_cell; + std::vector<Cell*> path; + std::pair<std::vector<Cell*>, int> initial_cell_pair = std::make_pair(path, 9 - nbDices_depart); + initial_cell = std::make_pair(cell_depart, initial_cell_pair); + queue.push(initial_cell); + + int compteur = 0; + + //cell � return en cas d'�chec de la fonction + std::vector<Cell*> return_vector; + std::pair<std::vector<Cell*>, int> return_cell({ return_vector, -1 }); + + while (!queue.empty()) + { + compteur++; + //On r�cup�re la cell avec la meilleure distance + current_cell = queue.top(); + queue.pop(); + + if (std::find(visited_cells.begin(), visited_cells.end(), current_cell.first) != visited_cells.end()) + { + continue; + } + + visited_cells.push_back(current_cell.first); + current_cell.second.first.push_back(current_cell.first); + + //std::cout << "Taille de queue : " << queue.size() << std::endl; + //std::cout << "Taille de vecteur de cells visit�es : " << visited_cells.size() << std::endl; + + if (current_cell.first->id == cell_arrivee->id) { + return current_cell.second; + } + + //Si le nombre de d�s � affronter au long du chemin est sup�rieur au nombre + //de d�s de notre case de d�part, on ne prend plus en compte ce chemin + //Ou bien si le chemin consid�r� est trop long + if (sum_nbDices < current_cell.second.second - 9 + nbDices_depart || current_cell.second.first.size() - 1 > nbDices_depart) { + continue; + } + + int distance; + for (unsigned int i = 0; i < current_cell.first->nbNeighbors; i++) { + if (current_cell.first->neighbors[i]->owner != id_player || current_cell.first->neighbors[i] == cell_arrivee) { + //On push chaque voisin qui ne nous appartient pas dans la queue + std::vector<Cell*> path(current_cell.second.first); + std::pair<std::vector<Cell*>, int> cell_pair = std::make_pair(path, 9 - nbDices_depart); + distance = current_cell.second.second + current_cell.first->neighbors[i]->nbDices; + queue.push(std::make_pair(current_cell.first->neighbors[i], cell_pair)); + } + } + } + return return_cell; +} + +std::pair<std::vector<Cell*>, int> CMap::DijkstraAlgo(Region* region_depart, Region* region_arrivee) +{ + unsigned int Id = region_depart->r_cells[0]->owner; + std::pair<std::vector<Cell*>, int> best_path = DijkstraAlgo(regions[Id][0]->r_cells[0], regions[Id][1]->r_cells[0]); + for (unsigned int i = 0; i < regions[Id][0]->r_cells.size(); i++) { + for (unsigned int j = 0; j < regions[Id][1]->r_cells.size(); j++) { + std::pair<std::vector<Cell*>, int> new_path1 = DijkstraAlgo(regions[Id][0]->r_cells[i], regions[Id][1]->r_cells[j]); + std::pair<std::vector<Cell*>, int> new_path2 = DijkstraAlgo(regions[Id][1]->r_cells[j], regions[Id][0]->r_cells[i]); + if (new_path1.second < best_path.second) { + best_path = new_path1; + } + if (new_path2.second < best_path.second) { + best_path = new_path2; + } + } + } + + return(best_path); +} + +void CMap::updateMap(const SGameState* state) { + for (unsigned int i = 0; i < state->nbCells; i++) { + cells[i]->owner = state->cells[i].owner; + cells[i]->nbDices = state->cells[i].nbDices; + } +} \ No newline at end of file diff --git a/StrategyBase/src/CMap.h b/StrategyBase/src/CMap.h new file mode 100644 index 0000000000000000000000000000000000000000..8d8378766764556770aa1289dd50f458afcd2860 --- /dev/null +++ b/StrategyBase/src/CMap.h @@ -0,0 +1,33 @@ +#pragma once +#include <vector> +#include <functional> +#include <algorithm> +#include <queue> +#include <map> +#include "../../Commun/IStrategyLib.h" +#include "Cell.h" +#include "Region.h" + +class CMap +{ +public: + unsigned int nbCells; + unsigned int nbRegions; + std::map<int, std::vector<Region*>> regions; + std::vector<Cell*> cells; + + //CMap()=delete; + CMap(const SMap*); + ~CMap(); + CMap(const CMap&) = delete; + CMap(CMap&&) = default; + CMap& operator=(const CMap&) = delete; + CMap& operator=(CMap&&)=default; + + void FindConnexComponent(int); + + std::pair<std::vector<Cell*>, int> DijkstraAlgo(Cell*, Cell*); + std::pair<std::vector<Cell*>, int> DijkstraAlgo(Region*, Region*); + + void updateMap(const SGameState*); +}; \ No newline at end of file diff --git a/StrategyBase/src/Cell.cpp b/StrategyBase/src/Cell.cpp new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/StrategyBase/src/Cell.h b/StrategyBase/src/Cell.h new file mode 100644 index 0000000000000000000000000000000000000000..14392358aa128e1e7f4fbf3d1cd574bb302c39ec --- /dev/null +++ b/StrategyBase/src/Cell.h @@ -0,0 +1,23 @@ +#pragma once +#include <vector> + +class Cell +{ +public: + unsigned int id; + unsigned int owner; + unsigned int nbNeighbors; + unsigned int nbDices; + std::vector<Cell*> neighbors; + + Cell()=default; + ~Cell()=default; + Cell(const int id_cell, const int id_player, const int nbvoisins, const int nbdes) : + id(id_cell), owner(id_player), nbNeighbors(nbvoisins), nbDices(nbdes) { + neighbors.resize(nbvoisins); + }; + Cell(const Cell&)=delete; + Cell(Cell&&) = delete; + Cell& operator=(const Cell&) = delete; + Cell& operator=(Cell&&) = delete; +}; \ No newline at end of file diff --git a/StrategyBase/src/Player.cpp b/StrategyBase/src/Player.cpp new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/StrategyBase/src/Player.h b/StrategyBase/src/Player.h new file mode 100644 index 0000000000000000000000000000000000000000..6f70f09beec2219624baeca92e2cd7deaa104fb4 --- /dev/null +++ b/StrategyBase/src/Player.h @@ -0,0 +1 @@ +#pragma once diff --git a/StrategyBase/src/Region.cpp b/StrategyBase/src/Region.cpp new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/StrategyBase/src/Region.h b/StrategyBase/src/Region.h new file mode 100644 index 0000000000000000000000000000000000000000..887397a1f6852399a344ed68dd08934976c6f286 --- /dev/null +++ b/StrategyBase/src/Region.h @@ -0,0 +1,17 @@ +#pragma once +#include "Cell.h" + +class Region +{ +public: + unsigned int nbCells; + std::vector<Cell*> r_cells; + + Region() : nbCells(0) {}; + Region(const std::vector<Cell*>& vec) : r_cells(vec), nbCells(vec.size()) {}; + ~Region() = default; + Region(const Region&)=default; + Region(Region&&) = default; + Region& operator=(const Region&) = delete; + Region& operator=(Region&&) = default; +}; \ No newline at end of file diff --git a/StrategyBase/src/Stats.cpp b/StrategyBase/src/Stats.cpp new file mode 100644 index 0000000000000000000000000000000000000000..5ae6c80e6e9f2595f9ff3d29aab616dbb1c6a648 --- /dev/null +++ b/StrategyBase/src/Stats.cpp @@ -0,0 +1 @@ +#include <Stats.h> diff --git a/StrategyBase/src/Stats.h b/StrategyBase/src/Stats.h new file mode 100644 index 0000000000000000000000000000000000000000..6f70f09beec2219624baeca92e2cd7deaa104fb4 --- /dev/null +++ b/StrategyBase/src/Stats.h @@ -0,0 +1 @@ +#pragma once diff --git a/StrategyBase/src/StrategyBase.cpp b/StrategyBase/src/StrategyBase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..2ba062281e50c827b68dbad695f62286dc39f4cd --- /dev/null +++ b/StrategyBase/src/StrategyBase.cpp @@ -0,0 +1,99 @@ +#include "StrategyBase.h" +#include <iostream> +#include <fstream> +#include <queue> + +StrategyBase::StrategyBase(unsigned int id, unsigned int nbPlayer, const SMap* map) : + Id(id), + NbPlayer(nbPlayer), + Map(CMap(map)), + possibilites({ {1, {{1, 1},{2, 1},{3, 1},{4, 1},{5, 1},{6, 1}}},{2, {{1, 0},{2, 1},{3, 2},{4, 3},{5, 4},{6, 5},{7, 6},{8, 5},{9, 4},{10, 3},{11, 2},{12, 1}}},{3, {{1, 0},{2, 0},{3, 1},{4, 3},{5, 6},{6, 10},{7, 15},{8, 21},{9, 25},{10, 27},{11, 27},{12, 25},{13, 21},{14, 15},{15, 10},{16, 6},{17, 3},{18, 1}}},{4, {{1, 0},{2, 0},{3, 0},{4, 1},{5, 4},{6, 10},{7, 20},{8, 35},{9, 56},{10, 80},{11, 104},{12, 125},{13, 140},{14, 146},{15, 140},{16, 125},{17, 104},{18, 80},{19, 56},{20, 35},{21, 20},{22, 10},{23, 4},{24, 1}}},{5, {{1, 0},{2, 0},{3, 0},{4, 0},{5, 1},{6, 5},{7, 15},{8, 35},{9, 70},{10, 126},{11, 205},{12, 305},{13, 420},{14, 540},{15, 651},{16, 735},{17, 780},{18, 780},{19, 735},{20, 651},{21, 540},{22, 420},{23, 305},{24, 205},{25, 126},{26, 70},{27, 35},{28, 15},{29, 5},{30, 1}}},{6, {{1, 0},{2, 0},{3, 0},{4, 0},{5, 0},{6, 1},{7, 6},{8, 21},{9, 56},{10, 126},{11, 252},{12, 456},{13, 756},{14, 1161},{15, 1666},{16, 2247},{17, 2856},{18, 3431},{19, 3906},{20, 4221},{21, 4332},{22, 4221},{23, 3906},{24, 3431},{25, 2856},{26, 2247},{27, 1666},{28, 1161},{29, 756},{30, 456},{31, 252},{32, 126},{33, 56},{34, 21},{35, 6},{36, 1}}},{7, {{1, 0},{2, 0},{3, 0},{4, 0},{5, 0},{6, 0},{7, 1},{8, 7},{9, 28},{10, 84},{11, 210},{12, 462},{13, 917},{14, 1667},{15, 2807},{16, 4417},{17, 6538},{18, 9142},{19, 12117},{20, 15267},{21, 18327},{22, 20993},{23, 22967},{24, 24017},{25, 24017},{26, 22967},{27, 20993},{28, 18327},{29, 15267},{30, 12117},{31, 9142},{32, 6538},{33, 4417},{34, 2807},{35, 1667},{36, 917},{37, 462},{38, 210},{39, 84},{40, 28},{41, 7},{42, 1}}},{8, {{1, 0},{2, 0},{3, 0},{4, 0},{5, 0},{6, 0},{7, 0},{8, 1},{9, 8},{10, 36},{11, 120},{12, 330},{13, 792},{14, 1708},{15, 3368},{16, 6147},{17, 10480},{18, 16808},{19, 25488},{20, 36688},{21, 50288},{22, 65808},{23, 82384},{24, 98813},{25, 113688},{26, 125588},{27, 133288},{28, 135954},{29, 133288},{30, 125588},{31, 113688},{32, 98813},{33, 82384},{34, 65808},{35, 50288},{36, 36688},{37, 25488},{38, 16808},{39, 10480},{40, 6147},{41, 3368},{42, 1708},{43, 792},{44, 330},{45, 120},{46, 36},{47, 8},{48, 1}}} }), + probabilites({ { {0, 1, 2, 3, 4, 5, 6, 7, 8}, {1, 0.416667, 0.0925926, 0.0115741, 0.000771605, 2.14335e-05, 0, 0, 0}, {2, 0.837963, 0.443673, 0.152006, 0.0358796, 0.00610497, 0.000766247, 7.09488e-05, 4.72992e-06}, {3, 0.972994, 0.778549, 0.453575, 0.191701, 0.0607127, 0.0148786, 0.00288998, 0.000451922}, {4, 0.997299, 0.939236, 0.742831, 0.459528, 0.220442, 0.0834228, 0.0254497, 0.00637948}, {5, 0.99985, 0.98794, 0.909347, 0.718078, 0.463654, 0.242449, 0.103626, 0.0367419}, {6, 0.999996, 0.998217, 0.9753, 0.883953, 0.699616, 0.466731, 0.259984, 0.121507}, {7, 1, 0.999801, 0.994663, 0.961536, 0.862377, 0.685165, 0.469139, 0.274376}, {8, 1, 0.999983, 0.999069, 0.989534, 0.947731, 0.843874, 0.673456, 0.471091} } }) +{ +} + +StrategyBase::~StrategyBase() +{ + // détruire proprement la structure Map + +} + + +void StrategyBase::updateOwnedCells() { + // mise à jour du vecteur des cellules alliées triées par nombre de voisins alliés + + ownedCells.clear(); + + for (unsigned int i = 0; i < Map.nbCells; i++) { + if (Map.cells[i]->owner == Id) { + ownedCells.push_back(Map.cells[i]); + } + } + + std::sort(ownedCells.begin(), ownedCells.end(), [this](Cell* c1, Cell* c2) { + int n1 = 0, n2 = 0; + for (unsigned int i = 0; i < c1->nbNeighbors; i++) if (c1->neighbors[i]->owner == Id) n1++; + for (unsigned int j = 0; j < c2->nbNeighbors; j++) if (c2->neighbors[j]->owner == Id) n2++; + return n1 > n2; + }); +} + +bool StrategyBase::PlayTurn(unsigned int gameTurn, const SGameState* state, STurn* turn) +{ + + Map.updateMap(state); + + Map.FindConnexComponent(Id); + std::cout << "Régions" << std::endl; + for (auto& it : Map.regions[Id]) { + std::cout << it->r_cells.size() << std::endl; + } + + /*On calcule le meilleur couple de cellules entre notre plus grande composante + connexe et notre deuxième plus grande, et on détermine le chemin pour rejoindre + ces deux cellules*/ + if (Map.regions[Id].size() >= 2) + { + std::pair<std::vector<Cell*>, int> best_path = Map.DijkstraAlgo(Map.regions[Id][0], Map.regions[Id][1]); + + //std::cout << "Plus de 2 composantes" << std::endl; + //std::cout << "Longueur du path : " << best_path.first.size() << std::endl; + //std::cout << "Distance du path : " << best_path.second << std::endl; + + if (!best_path.first.empty()) + { + turn->cellFrom = best_path.first[0]->id; + turn->cellTo = best_path.first[1]->id; + //std::cout << "StratConnex" << std::endl; + //std::cout << "cellFrom" << turn->cellFrom << std::endl; + //std::cout << "cellTo" << turn->cellTo << std::endl; + return(true); + } + } + + //updateOwnedCells(); + + //for (SCell* cell : ownedCells) { + // for (unsigned int numNeighbor = 0; numNeighbor < cell->nbNeighbors; numNeighbor++) { + // if (cell->infos.nbDices > cell->neighbors[numNeighbor]->infos.nbDices and cell->neighbors[numNeighbor]->infos.owner != Id) { + // turn->cellFrom = cell->infos.id; + // turn->cellTo = cell->neighbors[numNeighbor]->infos.id; + // return(true); + // } + // } + //} + for (unsigned int numCell = 0; numCell < Map.nbCells; numCell++) { + if (Map.cells[numCell]->owner == Id) { + for (unsigned int numNeighbor = 0; numNeighbor < Map.cells[numCell]->nbNeighbors; numNeighbor++) { + if (probabilites[Map.cells[numCell]->nbDices][Map.cells[numCell]->neighbors[numNeighbor]->nbDices] > 0.7 and Map.cells[numCell]->neighbors[numNeighbor]->owner != Id) { + //std::cout << "StratBase" << std::endl; + turn->cellFrom = numCell; + turn->cellTo = Map.cells[numCell]->neighbors[numNeighbor]->id; + return(true); + } + } + } + } + + return(false); +} \ No newline at end of file diff --git a/StrategyBase/src/StrategyBase.h b/StrategyBase/src/StrategyBase.h new file mode 100644 index 0000000000000000000000000000000000000000..57b5c0dc20e04760f1940b774a037fa2b7055dba --- /dev/null +++ b/StrategyBase/src/StrategyBase.h @@ -0,0 +1,32 @@ +#pragma once + +#include "../../Commun/IStrategyLib.h" +#include <vector> +#include <array> +#include <map> +#include "CMap.h" + +class StrategyBase +{ +public: + StrategyBase(unsigned int id, unsigned int nbPlayer, const SMap* map); + StrategyBase(const StrategyBase &obj) =delete; + StrategyBase(StrategyBase &&obj) =delete; + ~StrategyBase(); + StrategyBase& operator=(const StrategyBase &obj) =delete; + StrategyBase& operator=(StrategyBase &&obj) =delete; + + bool PlayTurn(unsigned int gameTurn, const SGameState *state, STurn *turn); + + void updateOwnedCells(); + + std::map<unsigned int, std::map<unsigned int, unsigned int>> possibilites; + std::array<std::array<double, 9>, 9> probabilites; + +protected: + const unsigned int Id; + const unsigned int NbPlayer; + CMap Map; + + std::vector<Cell*> ownedCells; +}; diff --git a/StrategyBase/src/strategy.cpp b/StrategyBase/src/strategy.cpp new file mode 100644 index 0000000000000000000000000000000000000000..d836d1e2e3e6c38c5c3360e6d89747cf9dfc1be1 --- /dev/null +++ b/StrategyBase/src/strategy.cpp @@ -0,0 +1,46 @@ +#include "interface_lib.h" +#include "Strategy.h" +#include <iostream> + +API_EXPORT void InitStrategy(SInfo* info) +{ + std::cout << "InitStrategy" << std::endl; + + info->SetName("Test"); + info->AddMember("Timon Deschamps"); +} + +API_EXPORT IStrategy* StrategyFactory() +{ + return(new Strategy()); +} + +API_EXPORT void StrategyDelete(IStrategy* obj) +{ + delete(obj); +} + +// ---------------------------------------------------------------------------- + +void Strategy::InitGame(unsigned int id, unsigned int nbPlayer, const SMap* map) +{ + if (Current) delete Current; + Current = new StrategyBase(id, nbPlayer, map); +} + +bool Strategy::PlayTurn(unsigned int gameTurn, const SGameState *state, STurn *turn) +{ + if (Current) return(Current->PlayTurn(gameTurn, state, turn)); + return(false); +} + +void Strategy::EndGame(unsigned int idWinner) +{ + if (Current) + { + delete Current; + Current = nullptr; + } + std::cout << idWinner << std::endl; + while (true); +} diff --git a/bin/Win32/Debug/GenMap.dll b/bin/Win32/Debug/GenMap.dll index dd4b0754ac9f6c79455eb0b8d5f166a41e256ad5..216db1d331c2b5a4a5b57aaecefbad7aed6ec64c 100644 Binary files a/bin/Win32/Debug/GenMap.dll and b/bin/Win32/Debug/GenMap.dll differ diff --git a/bin/Win32/Debug/StrategyDummy.dll b/bin/Win32/Debug/StrategyDummy.dll new file mode 100644 index 0000000000000000000000000000000000000000..b7da11c052d0b1000085c89ed2b8ccc92a3c07d9 Binary files /dev/null and b/bin/Win32/Debug/StrategyDummy.dll differ diff --git a/bin/x64/Debug/GenMap.dll b/bin/x64/Debug/GenMap.dll index d03c9031a9fe48b3de4ae0525ca27d21790d76cf..5d69ad1607c4552ef91bcd27449b3529a16a3d62 100644 Binary files a/bin/x64/Debug/GenMap.dll and b/bin/x64/Debug/GenMap.dll differ diff --git a/bin/x64/Debug/StrategyBase.dll b/bin/x64/Debug/StrategyBase.dll new file mode 100644 index 0000000000000000000000000000000000000000..9a6c6f2162d6989e8d62b71ceafb03f7c68d64ed Binary files /dev/null and b/bin/x64/Debug/StrategyBase.dll differ diff --git a/bin/x64/Debug/StrategyBase.exp b/bin/x64/Debug/StrategyBase.exp new file mode 100644 index 0000000000000000000000000000000000000000..8bf6ea10b3da92bcbd17d3b45e8767e7134b7d23 Binary files /dev/null and b/bin/x64/Debug/StrategyBase.exp differ diff --git a/bin/x64/Debug/StrategyBase.pdb b/bin/x64/Debug/StrategyBase.pdb new file mode 100644 index 0000000000000000000000000000000000000000..5b896d89f43340e77a6068b8e530dea9b374ebf3 Binary files /dev/null and b/bin/x64/Debug/StrategyBase.pdb differ diff --git a/bin/x64/Debug/StrategyDummy.dll b/bin/x64/Debug/StrategyDummy.dll new file mode 100644 index 0000000000000000000000000000000000000000..5a8fc1841eaccfe0bb92e7f94e46defc3b6f100a Binary files /dev/null and b/bin/x64/Debug/StrategyDummy.dll differ diff --git a/temp/Win32/Debug/GenMap/DefaultMap.obj b/temp/Win32/Debug/GenMap/DefaultMap.obj new file mode 100644 index 0000000000000000000000000000000000000000..30ce0a3f121fa252688af68073f0524f70809151 Binary files /dev/null and b/temp/Win32/Debug/GenMap/DefaultMap.obj differ diff --git a/temp/Win32/Debug/GenMap/GenMap.dll.recipe b/temp/Win32/Debug/GenMap/GenMap.dll.recipe new file mode 100644 index 0000000000000000000000000000000000000000..d21ed211dcdaacc143f566a7394baebee9db0246 --- /dev/null +++ b/temp/Win32/Debug/GenMap/GenMap.dll.recipe @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project> + <ProjectOutputs> + <ProjectOutput> + <FullPath>C:\Users\Timon\source\repos\projet-dicewar\bin\Win32\Debug\GenMap.dll</FullPath> + </ProjectOutput> + </ProjectOutputs> + <ContentFiles /> + <SatelliteDlls /> + <NonRecipeFileRefs /> +</Project> \ No newline at end of file diff --git a/temp/Win32/Debug/GenMap/GenMap.exp b/temp/Win32/Debug/GenMap/GenMap.exp new file mode 100644 index 0000000000000000000000000000000000000000..aecfb6b5bfcfcd46d8389dcf52028a521e62e952 Binary files /dev/null and b/temp/Win32/Debug/GenMap/GenMap.exp differ diff --git a/temp/Win32/Debug/GenMap/GenMap.ilk b/temp/Win32/Debug/GenMap/GenMap.ilk new file mode 100644 index 0000000000000000000000000000000000000000..8609aab85d3e65341d6fcbbeaa82805ba95ddacb Binary files /dev/null and b/temp/Win32/Debug/GenMap/GenMap.ilk differ diff --git a/temp/Win32/Debug/GenMap/GenMap.lib b/temp/Win32/Debug/GenMap/GenMap.lib new file mode 100644 index 0000000000000000000000000000000000000000..cfc11d7567d6df892eae864f719c0a9b568faa12 Binary files /dev/null and b/temp/Win32/Debug/GenMap/GenMap.lib differ diff --git a/temp/Win32/Debug/GenMap/GenMap.log b/temp/Win32/Debug/GenMap/GenMap.log new file mode 100644 index 0000000000000000000000000000000000000000..b1fbe5e31c53a714f240b03ecb7ba1173bb1a712 --- /dev/null +++ b/temp/Win32/Debug/GenMap/GenMap.log @@ -0,0 +1,7 @@ + DefaultMap.cpp + MapLoader.cpp + StaticMapGenerator.cpp + Generating Code... + LINK : C:\Users\Timon\source\repos\projet-dicewar\bin\Win32\Debug\GenMap.dll not found or not built by the last incremental link; performing full link + Creating library C:\Users\Timon\source\repos\projet-dicewar\temp\Win32\Debug\GenMap\GenMap.lib and object C:\Users\Timon\source\repos\projet-dicewar\temp\Win32\Debug\GenMap\GenMap.exp + GenMap.vcxproj -> C:\Users\Timon\source\repos\projet-dicewar\bin\Win32\Debug\GenMap.dll diff --git a/temp/Win32/Debug/GenMap/GenMap.pdb b/temp/Win32/Debug/GenMap/GenMap.pdb new file mode 100644 index 0000000000000000000000000000000000000000..fc6fae90dc97673fab93ea8151d5190497eee16a Binary files /dev/null and b/temp/Win32/Debug/GenMap/GenMap.pdb differ diff --git a/temp/Win32/Debug/GenMap/GenMap.tlog/CL.command.1.tlog b/temp/Win32/Debug/GenMap/GenMap.tlog/CL.command.1.tlog new file mode 100644 index 0000000000000000000000000000000000000000..4802ffe5be6e0d240bef89468ff0aa6ebcba117e Binary files /dev/null and b/temp/Win32/Debug/GenMap/GenMap.tlog/CL.command.1.tlog differ diff --git a/temp/Win32/Debug/GenMap/GenMap.tlog/CL.read.1.tlog b/temp/Win32/Debug/GenMap/GenMap.tlog/CL.read.1.tlog new file mode 100644 index 0000000000000000000000000000000000000000..9aaf499265557e28b0dbcd61ebcb1010f89a6e15 Binary files /dev/null and b/temp/Win32/Debug/GenMap/GenMap.tlog/CL.read.1.tlog differ diff --git a/temp/Win32/Debug/GenMap/GenMap.tlog/CL.write.1.tlog b/temp/Win32/Debug/GenMap/GenMap.tlog/CL.write.1.tlog new file mode 100644 index 0000000000000000000000000000000000000000..0e42fe465b52523b137409c511855edb1db96bf8 Binary files /dev/null and b/temp/Win32/Debug/GenMap/GenMap.tlog/CL.write.1.tlog differ diff --git a/temp/Win32/Debug/GenMap/GenMap.tlog/GenMap.lastbuildstate b/temp/Win32/Debug/GenMap/GenMap.tlog/GenMap.lastbuildstate new file mode 100644 index 0000000000000000000000000000000000000000..cda65a0624d13435dc2404619d440610e0eb1326 --- /dev/null +++ b/temp/Win32/Debug/GenMap/GenMap.tlog/GenMap.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.28.29910:TargetPlatformVersion=10.0.19041.0: +Debug|Win32|C:\Users\Timon\source\repos\projet-dicewar\| diff --git a/temp/Win32/Debug/GenMap/GenMap.tlog/GenMap.write.1u.tlog b/temp/Win32/Debug/GenMap/GenMap.tlog/GenMap.write.1u.tlog new file mode 100644 index 0000000000000000000000000000000000000000..198aaa9898c56372477cb366e14077a5e40e4b56 Binary files /dev/null and b/temp/Win32/Debug/GenMap/GenMap.tlog/GenMap.write.1u.tlog differ diff --git a/temp/Win32/Debug/GenMap/GenMap.tlog/link.command.1.tlog b/temp/Win32/Debug/GenMap/GenMap.tlog/link.command.1.tlog new file mode 100644 index 0000000000000000000000000000000000000000..8bbf0c6089b67c96a8a99da441ba421cea3c7b9c Binary files /dev/null and b/temp/Win32/Debug/GenMap/GenMap.tlog/link.command.1.tlog differ diff --git a/temp/Win32/Debug/GenMap/GenMap.tlog/link.read.1.tlog b/temp/Win32/Debug/GenMap/GenMap.tlog/link.read.1.tlog new file mode 100644 index 0000000000000000000000000000000000000000..70eee991844dd3d87bc1eeab758f421d2b4fae69 Binary files /dev/null and b/temp/Win32/Debug/GenMap/GenMap.tlog/link.read.1.tlog differ diff --git a/temp/Win32/Debug/GenMap/GenMap.tlog/link.write.1.tlog b/temp/Win32/Debug/GenMap/GenMap.tlog/link.write.1.tlog new file mode 100644 index 0000000000000000000000000000000000000000..ebd9f13e8c633127d682dcdf7c4234db2f74e3e0 Binary files /dev/null and b/temp/Win32/Debug/GenMap/GenMap.tlog/link.write.1.tlog differ diff --git a/temp/Win32/Debug/GenMap/MapLoader.obj b/temp/Win32/Debug/GenMap/MapLoader.obj new file mode 100644 index 0000000000000000000000000000000000000000..3e963d4733a7d8ba27a52184c3b719beaec96cc0 Binary files /dev/null and b/temp/Win32/Debug/GenMap/MapLoader.obj differ diff --git a/temp/Win32/Debug/GenMap/StaticMapGenerator.obj b/temp/Win32/Debug/GenMap/StaticMapGenerator.obj new file mode 100644 index 0000000000000000000000000000000000000000..e62fb91bc8527dcea96c7078fc098a8435885334 Binary files /dev/null and b/temp/Win32/Debug/GenMap/StaticMapGenerator.obj differ diff --git a/temp/Win32/Debug/GenMap/vc142.idb b/temp/Win32/Debug/GenMap/vc142.idb new file mode 100644 index 0000000000000000000000000000000000000000..d005d65d981e0cb575ddffb8d1491ffe6929bd7a Binary files /dev/null and b/temp/Win32/Debug/GenMap/vc142.idb differ diff --git a/temp/Win32/Debug/GenMap/vc142.pdb b/temp/Win32/Debug/GenMap/vc142.pdb new file mode 100644 index 0000000000000000000000000000000000000000..c7ba2a906442572c42926766068c96b52bef073a Binary files /dev/null and b/temp/Win32/Debug/GenMap/vc142.pdb differ diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.dll.recipe b/temp/Win32/Debug/StrategyDummy/StrategyDummy.dll.recipe new file mode 100644 index 0000000000000000000000000000000000000000..7bc0ff281643c34852241615c7f7164a44279c60 --- /dev/null +++ b/temp/Win32/Debug/StrategyDummy/StrategyDummy.dll.recipe @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project> + <ProjectOutputs> + <ProjectOutput> + <FullPath>C:\Users\Timon\source\repos\projet-dicewar\bin\Win32\Debug\StrategyDummy.dll</FullPath> + </ProjectOutput> + </ProjectOutputs> + <ContentFiles /> + <SatelliteDlls /> + <NonRecipeFileRefs /> +</Project> \ No newline at end of file diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.exp b/temp/Win32/Debug/StrategyDummy/StrategyDummy.exp new file mode 100644 index 0000000000000000000000000000000000000000..ffd41d3e986330efdb4774d6364fb78cfe563858 Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/StrategyDummy.exp differ diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.ilk b/temp/Win32/Debug/StrategyDummy/StrategyDummy.ilk new file mode 100644 index 0000000000000000000000000000000000000000..6b50fef4869ee69164520e20f9099383310b180a Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/StrategyDummy.ilk differ diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.lib b/temp/Win32/Debug/StrategyDummy/StrategyDummy.lib new file mode 100644 index 0000000000000000000000000000000000000000..0296e59940e13296e9aa66e12412e173896ac56f Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/StrategyDummy.lib differ diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.log b/temp/Win32/Debug/StrategyDummy/StrategyDummy.log new file mode 100644 index 0000000000000000000000000000000000000000..86f4750a7e17ee25ee49b4d79bb76b5b61208c11 --- /dev/null +++ b/temp/Win32/Debug/StrategyDummy/StrategyDummy.log @@ -0,0 +1,4 @@ + StrategyDummy.cpp + strategy.cpp + Generating Code... + StrategyDummy.vcxproj -> C:\Users\Timon\source\repos\projet-dicewar\bin\Win32\Debug\StrategyDummy.dll diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.obj b/temp/Win32/Debug/StrategyDummy/StrategyDummy.obj new file mode 100644 index 0000000000000000000000000000000000000000..e7662d8f1cef82ade98b27f3b81c607523e2f191 Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/StrategyDummy.obj differ diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.pdb b/temp/Win32/Debug/StrategyDummy/StrategyDummy.pdb new file mode 100644 index 0000000000000000000000000000000000000000..9aed799b6c03a85ff2377802d5b736536798735a Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/StrategyDummy.pdb differ diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/CL.command.1.tlog b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/CL.command.1.tlog new file mode 100644 index 0000000000000000000000000000000000000000..17509604466812342a58d6e1cb88f60f50a5d62f Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/CL.command.1.tlog differ diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/CL.read.1.tlog b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/CL.read.1.tlog new file mode 100644 index 0000000000000000000000000000000000000000..6b266e486eb2279e149d9902b7206e2c034fa148 Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/CL.read.1.tlog differ diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/CL.write.1.tlog b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/CL.write.1.tlog new file mode 100644 index 0000000000000000000000000000000000000000..738cff0d0c378037d3a67ae52e8ef3f8ee8a7a35 Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/CL.write.1.tlog differ diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/StrategyDummy.lastbuildstate b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/StrategyDummy.lastbuildstate new file mode 100644 index 0000000000000000000000000000000000000000..cda65a0624d13435dc2404619d440610e0eb1326 --- /dev/null +++ b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/StrategyDummy.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.28.29910:TargetPlatformVersion=10.0.19041.0: +Debug|Win32|C:\Users\Timon\source\repos\projet-dicewar\| diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/StrategyDummy.write.1u.tlog b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/StrategyDummy.write.1u.tlog new file mode 100644 index 0000000000000000000000000000000000000000..51db1b764d2d75a891b29d2524ada65259c02739 Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/StrategyDummy.write.1u.tlog differ diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/link.command.1.tlog b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/link.command.1.tlog new file mode 100644 index 0000000000000000000000000000000000000000..a07f0ebd28647a4ba6cfae8379c676fdca51e11d Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/link.command.1.tlog differ diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/link.read.1.tlog b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/link.read.1.tlog new file mode 100644 index 0000000000000000000000000000000000000000..4f3587032f988c3f5965cd4d198785b6598c10cf Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/link.read.1.tlog differ diff --git a/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/link.write.1.tlog b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/link.write.1.tlog new file mode 100644 index 0000000000000000000000000000000000000000..0ab8b853b7e8e7e5a533b30cfbbb0c28ad5a27a9 Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/StrategyDummy.tlog/link.write.1.tlog differ diff --git a/temp/Win32/Debug/StrategyDummy/strategy.obj b/temp/Win32/Debug/StrategyDummy/strategy.obj new file mode 100644 index 0000000000000000000000000000000000000000..d1bd02d7d53f718285ce0f2bb937f1c9d94cb3cc Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/strategy.obj differ diff --git a/temp/Win32/Debug/StrategyDummy/vc142.idb b/temp/Win32/Debug/StrategyDummy/vc142.idb new file mode 100644 index 0000000000000000000000000000000000000000..b734801700d2686c817b58bb26e65600fb3150f5 Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/vc142.idb differ diff --git a/temp/Win32/Debug/StrategyDummy/vc142.pdb b/temp/Win32/Debug/StrategyDummy/vc142.pdb new file mode 100644 index 0000000000000000000000000000000000000000..21cd9a7bf3541edfc59d418ac0d6e34557fd1459 Binary files /dev/null and b/temp/Win32/Debug/StrategyDummy/vc142.pdb differ