Click here to Skip to main content
15,892,737 members
Articles / Artificial Intelligence

Reversi

Rate me:
Please Sign up or sign in to vote.
4.79/5 (15 votes)
18 Mar 2008CPOL5 min read 85.4K   4.9K   46  
An implementation of the popular game Reversi, written as a project for an AI course.
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{38B731A7-490C-4C1C-B2E8-32141D034828}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Reversi</RootNamespace>
    <AssemblyName>Reversi</AssemblyName>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Deployment" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Classes\Board.cs" />
    <Compile Include="Classes\ComputerPlayer.cs" />
    <Compile Include="Classes\DiscColor.cs" />
    <Compile Include="Classes\Game.cs" />
    <Compile Include="Classes\HumanPlayer.cs" />
    <Compile Include="Classes\MoveSolver.cs" />
    <Compile Include="Classes\Player.cs" />
    <Compile Include="Classes\PlayerProperties.cs" />
    <Compile Include="Forms and Controls\BoardControl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Forms and Controls\BoardControl.Designer.cs">
      <DependentUpon>BoardControl.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms and Controls\MainForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms and Controls\MainForm.Designer.cs">
      <DependentUpon>MainForm.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms and Controls\BoardFieldControl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Forms and Controls\BoardFieldControl.Designer.cs">
      <DependentUpon>BoardFieldControl.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms and Controls\PlayerInfoControl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Forms and Controls\PlayerInfoControl.Designer.cs">
      <DependentUpon>PlayerInfoControl.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms and Controls\PlayerPropertiesControl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Forms and Controls\PlayerPropertiesControl.Designer.cs">
      <DependentUpon>PlayerPropertiesControl.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms and Controls\StartNewGameForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms and Controls\StartNewGameForm.Designer.cs">
      <DependentUpon>StartNewGameForm.cs</DependentUpon>
    </Compile>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <EmbeddedResource Include="Forms and Controls\BoardControl.resx">
      <SubType>Designer</SubType>
      <DependentUpon>BoardControl.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms and Controls\BoardFieldControl.resx">
      <SubType>Designer</SubType>
      <DependentUpon>BoardFieldControl.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms and Controls\MainForm.resx">
      <SubType>Designer</SubType>
      <DependentUpon>MainForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms and Controls\PlayerInfoControl.resx">
      <SubType>Designer</SubType>
      <DependentUpon>PlayerInfoControl.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms and Controls\PlayerPropertiesControl.resx">
      <SubType>Designer</SubType>
      <DependentUpon>PlayerPropertiesControl.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms and Controls\StartNewGameForm.resx">
      <SubType>Designer</SubType>
      <DependentUpon>StartNewGameForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
    <Compile Include="Properties\Settings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    </Compile>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Bulgaria Bulgaria
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions