Click here to Skip to main content
15,892,199 members
Articles / Desktop Programming / WPF

WPF Alien Sokoban

Rate me:
Please Sign up or sign in to vote.
4.88/5 (44 votes)
16 Jun 2008BSD9 min read 125.5K   3.4K   78  
A fun implementation of the game Sokoban, written to showcase some features of WPF, C# 3.0, Expression Design, and Visual Studio 2008.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.21022</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{ABAF9D35-CD92-49F9-9E68-9B04E2B28BA7}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Orpius.Sokoban</RootNamespace>
    <AssemblyName>Orpius.Sokoban</AssemblyName>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
  </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.Core">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Xml.Linq">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data.DataSetExtensions">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Cell.cs" />
    <Compile Include="CellContents.cs" />
    <Compile Include="CellContents\Actor\Actor.cs" />
    <Compile Include="CellContents\Actor\Actor.Jump.cs" />
    <Compile Include="CellContents\Actor\Actor.Push.cs" />
    <Compile Include="CellContents\Actor\Actor.Step.cs" />
    <Compile Include="CellContents\Treasure.cs" />
    <Compile Include="Cells\FloorCell.cs" />
    <Compile Include="Cells\GoalCell.cs" />
    <Compile Include="Cells\SpaceCell.cs" />
    <Compile Include="Cells\WallCell.cs" />
    <Compile Include="CommandBase.cs" />
    <Compile Include="CommandManager.cs" />
    <Compile Include="Commands\JumpCommand.cs" />
    <Compile Include="Commands\MoveCommand.cs" />
    <Compile Include="Commands\PushCommand.cs" />
    <Compile Include="DefaultSokobanService.cs" />
    <Compile Include="Direction.cs" />
    <Compile Include="Game.cs" />
    <Compile Include="ISokobanService.cs" />
    <Compile Include="Moves\Jump.cs" />
    <Compile Include="Level.cs" />
    <Compile Include="LevelCode.cs" />
    <Compile Include="LevelContentBase.cs" />
    <Compile Include="Location.cs" />
    <Compile Include="Moves\Move.cs" />
    <Compile Include="MoveBase.cs" />
    <Compile Include="PathFinders\PushPathFinder.cs" />
    <Compile Include="PathFinders\SearchPathFinder.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Moves\Push.cs" />
    <Compile Include="SokobanException.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Diagrams\All.cd" />
    <None Include="Diagrams\GameLevelCell.cd" />
  </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 BSD License


Written By
Engineer
Switzerland Switzerland
Daniel is a former senior engineer in Technology and Research at the Office of the CTO at Microsoft, working on next generation systems.

Previously Daniel was a nine-time Microsoft MVP and co-founder of Outcoder, a Swiss software and consulting company.

Daniel is the author of Windows Phone 8 Unleashed and Windows Phone 7.5 Unleashed, both published by SAMS.

Daniel is the developer behind several acclaimed mobile apps including Surfy Browser for Android and Windows Phone. Daniel is the creator of a number of popular open-source projects, most notably Codon.

Would you like Daniel to bring value to your organisation? Please contact

Blog | Twitter


Xamarin Experts
Windows 10 Experts

Comments and Discussions