Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Chess Program in C#

, 17 Mar 2013
SrcChess is a chess program built in C#
Article_demo-noexe.zip
Article_demo.zip
Article_src.zip
SrcChess2
Analyze.ruleset
Book.bin
PieceSets
aaa.bak
Adventurer
Alpfonso-X
Alpha
Alpha-2
Arial Unicode MS
Berlin
Cases
Chess-7
Condal
Harlequin
Kingdom
Leipzig
Line
Lucena
Magnetic
Maya
Mediaeval
Merida
Millennia
Motif
MS Mincho
Plain
Segoe UI Symbol
Smart
Traveller Standard
Usual
Properties
Settings.settings
Resources
image.png
SrcChess2.csproj.user
ChessProgram.zip
<?xml version="1.0" encoding="utf-8"?>
<UserControl xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="400" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
  <Viewbox Stretch="Uniform">
    <Grid Width="18.015552520752" Height="17.2947001457214">
      <Path Fill="Black" Stretch="Fill" Data="M9.0042297,16.2497 C8.5224497,16.94631 7.8714097,17.29462 7.0511097,17.29462 6.9665097,17.29462 6.8834597,17.28962 6.8020897,17.28002 6.7206897,17.27002 6.6409497,17.26212 6.5628297,17.25562 6.3740197,17.24862 6.0973297,17.21492 5.7327497,17.15308 5.3681597,17.09128 4.9612597,16.94637 4.5120497,16.71851 4.1149097,16.37346 3.6103497,16.20093 2.9983697,16.20093 2.5296197,16.20093 2.1227197,16.31161 1.7776697,16.53296 1.6799697,16.57856 1.5595697,16.67294&#xD;&#xA;1.4163397,16.81616 1.1559197,17.09611 0.94433974,17.24911 0.78157974,17.27515 0.65136974,17.21005 0.58300974,17.09937 0.57649974,16.94312 0.54389974,16.63713 0.76855974,16.24325 1.2503297,15.76148 1.1657297,15.77448 1.0061897,15.81358 0.77180974,15.87866 0.57649974,15.93726 0.44628974,15.96656 0.38118974,15.96656 0.16633974,15.99916 0.052409739,16.00236 0.039389739,15.97656 -0.032210261,15.90496 -0.0062102613,15.75846 0.11748974,15.53711 0.22164974,15.34831&#xD;&#xA;0.42346974,15.18229 0.72294974,15.03906 0.76204974,15.01956 0.88570974,14.96416 1.0940497,14.87304 1.6995097,14.55404 2.3342797,14.39453 2.9983397,14.39453 3.9683897,14.39453 4.8440397,14.72331 5.6252997,15.38086 5.9377897,15.48503 6.2535497,15.53711 6.5725597,15.53711 7.5491197,15.53711 8.0536697,15.13347 8.0862397,14.32617 7.4547197,14.26757 6.9289997,14.16016 6.5090897,14.0039 6.0891597,13.84766 5.8791997,13.66537 5.8791997,13.45703&#xD;&#xA; L6.6604497,10.85937 C6.2047197,10.14324 5.8271097,9.41407 5.5276397,8.67187 5.2281597,7.9297 5.0784197,7.22657 5.0784197,6.5625 5.0784197,4.57032 6.1591397,3.04038 8.3206097,1.97265 8.3205997,1.88805 8.3306097,1.76108 8.3499097,1.59179 8.1285397,1.40952 8.0178697,1.1784 8.0178797,0.89844 8.0178697,0.2995 8.3205997,2E-05 8.9260797,1.5777218E-30 9.5250297,2E-05 9.8245097,0.2995 9.8245197,0.89844 9.8245097,1.15887 9.7301197,1.37697&#xD;&#xA;9.5413097,1.55273 9.5412997,1.75457 9.5673097,1.89129 9.6194097,1.96289 9.7300697,2.11916 9.8765597,2.20054 10.05886,2.20703 10.24765,2.20103 10.4039,2.11593 10.52761,1.95312 10.55361,1.91412 10.57971,1.79363 10.60571,1.59179 10.43642,1.41603 10.35179,1.19793 10.3518,0.9375 10.35179,0.32554 10.65778,0.01955 11.26977,0.01953 11.88174,0.01955 12.18772,0.32554 12.18774,0.9375 12.18772,1.28257&#xD;&#xA;12.03799,1.54949 11.73852,1.73828 11.71242,1.8685 11.70592,1.97267 11.71902,2.05078 12.81926,3.35288 13.29778,4.85678 13.15456,6.5625 13.10896,7.05079 13.03411,7.53093 12.92996,8.00293 12.82577,8.47494 12.64348,8.91928 12.38308,9.33594 12.28538,9.5573 12.13404,9.80632 11.92898,10.08301 11.72389,10.35971 11.54648,10.6185 11.39675,10.85937 L12.16824,13.45703 C12.16124,13.66537 11.94687,13.84766 11.52371,14.0039 11.10052,14.16016 10.56666,14.26758 9.9221397,14.32617 9.9546397,15.13347 10.4625,15.53711 11.44558,15.53711 11.76458,15.53711 12.08033,15.48501 12.39285,15.38086 13.16757,14.72331 14.04322,14.39453 15.0198,14.39453 15.68385,14.39453 16.31535,14.55404 16.91433,14.87304 16.99243,14.91214 17.0608,14.94464 17.11941,14.97074 17.17801,14.99674 17.23658,15.01954&#xD;&#xA;17.29519,15.03914 17.58814,15.18888 17.78996,15.3549 17.90066,15.53719 17.92016,15.59579 17.94946,15.67065 17.98856,15.7618 18.02756,15.8529 18.02436,15.92456 17.97856,15.97664 17.95896,16.00264 17.84508,15.99944 17.63677,15.96664 17.57167,15.96665 17.44144,15.93734 17.24614,15.87874 17.00524,15.81364 16.84248,15.77458 16.75786,15.76156 17.23961,16.24984 17.46748,16.64372 17.44145,16.9432 17.42845,17.09294&#xD;&#xA;17.35685,17.20362 17.22661,17.27523 17.06383,17.24923 16.85224,17.09619 16.59184,16.81624 16.46162,16.68604 16.34443,16.59164 16.24028,16.53304 15.87568,16.31169 15.46878,16.20101 15.01958,16.20101 14.39456,16.20101 13.88675,16.37354 13.49614,16.71859 13.04691,16.94645 12.64001,17.09131 12.27544,17.15316 11.91084,17.21496 11.63741,17.24916 11.45513,17.2557 11.37703,17.2627 11.29561,17.2704 11.21099,17.2801&#xD;&#xA;11.12629,17.2901 11.04496,17.2947 10.96684,17.2947 10.12699,17.2947 9.4726897,16.94639 9.0039497,16.24978 z" />
      <Path Fill="White" Stretch="Fill" Data="M2.66602,-4.4176211E-29 C1.93033,1E-05 1.30208,0.0651 0.78125,0.19531 0.26041,0.32553 -9.999712E-06,0.48178 2.8798297E-10,0.66406 -9.999712E-06,0.84636 0.26041,1.00098 0.78125,1.12793 1.30208,1.25489 1.93033,1.31837 2.66602,1.31836 3.40168,1.31837 4.03157,1.25486 4.55567,1.12793 5.07974,1.00098 5.34179,0.84636 5.3418,0.66406 5.34179,0.48178 5.07974,0.32553 4.55567,0.19531 4.03157,0.06511 3.40168,1E-05&#xD;&#xA;2.66602,-4.4176211E-29 z" Height="1.318" Margin="6.397,0,6.277,3.419" VerticalAlignment="Bottom" />
      <Path Fill="White" Stretch="Fill" Data="M0.41992,3.9443045E-31 C0.13996,2E-05 -9.9994642E-06,0.13674 5.3576699E-10,0.41016 -9.9994642E-06,0.69012 0.13996,0.8301 0.41992,0.83008 0.69985,0.8301 0.83983,0.69012 0.83984,0.41016 0.83983,0.13674 0.69985,2E-05 0.41992,3.9443045E-31 z" HorizontalAlignment="Right" Height="0.83" Margin="0,0.527,6.326,0" VerticalAlignment="Top" Width="0.84" />
      <Path Fill="White" Stretch="Fill" Data="M0.40039033,4.2438497E-09 C0.13345033,2.0004244E-05 -9.6713257E-06,0.13349 3.2867434E-07,0.4004 -9.6713257E-06,0.66734 0.13345033,0.8008 0.40039033,0.80079 0.66731033,0.8008 0.80077033,0.66734 0.80078033,0.4004 0.80077033,0.13349 0.66731033,2.0004244E-05 0.40039033,4.2438497E-09 z" Height="0.801" Margin="8.526,0.498,8.689,0" VerticalAlignment="Top" />
      <Path Fill="White" Stretch="Fill" Data="M1.88477,0.39063033 L0.93750003,3.2867429E-07 3.2348655E-08,0.39063033 0.93750003,0.78125033 z" Height="0.781" Margin="8.076,0,8.055,5.118" VerticalAlignment="Bottom" />
      <Path Fill="White" Stretch="Fill" Data="M2.1754827,4.3761215 C2.2470827,4.0245715 2.1380827,3.3751515 1.8483327,2.4278715 1.5586027,1.4806215 1.1305427,0.69449151 0.56415275,0.069481514 0.47945275,0.017381514 0.40463275,-0.0054184858 0.33954275,0.0010815142 0.24184275,0.014081514 0.15235275,0.062981514 0.07099275,0.14756151 -0.01040725,0.23216151 -0.02180725,0.33312151 0.03679275,0.45030151 0.72688275,0.91906151 1.2542227,1.5928915 1.6188227,2.4717815 1.9833927,3.3507015 2.1689327,3.9854615 2.1754627,4.3760815 z" HorizontalAlignment="Right" Height="4.376" Margin="0,2.166,5.182,0" VerticalAlignment="Top" Width="2.197" />
      <Path Fill="White" Stretch="Fill" Data="M1.12305,8.27148 C1.74804,8.06316 2.47395,7.95899 3.30078,7.95898 4.16014,7.95899 4.89257,8.06316 5.49805,8.27148 6.2923,6.66993 6.68944,5.41342 6.68945,4.50195 6.68944,2.95899 5.5729,1.45835 3.33984,4.1359031E-24 1.11327,1.45835 -9.9997997E-06,2.95899 2.0034463E-10,4.50195 -9.9997997E-06,5.48503 0.37434,6.74154 1.12305,8.27148 z" Margin="5.713,2.011,5.613,7.012" />
      <Path Fill="White" Stretch="Fill" Data="M3.9843801,0.81054 L3.8086001,0.19531 C3.2617101,0.06511 2.6464801,1E-05 1.9628901,3.5527137E-15 1.2923101,1E-05 0.7031201,0.0586 0.1953201,0.17578 L9.7045918E-08,0.80078 C0.5403601,0.65756 1.1946601,0.58594 1.9628901,0.58594 2.7701801,0.58594 3.4440001,0.66084 3.9843801,0.81054 z" Height="0.811" Margin="7.041,0,6.99,6.016" VerticalAlignment="Bottom" />
      <Path Fill="White" Stretch="Fill" Data="M1.0839803,0.69336 L0.8691403,1.7763569E-15 2.9632571E-07,0.18554 0.8593703,0.74218 z" HorizontalAlignment="Right" Height="0.743" Margin="0,0,6.639,4.922" VerticalAlignment="Bottom" Width="1.084" />
      <Path Fill="White" Stretch="Fill" Data="M-1.323489E-23,0.70308018 L0.17578,0.74218018 1.03516,0.18554018 0.20508,1.8005369E-07 z" HorizontalAlignment="Left" Height="0.742" Margin="6.709,0,0,4.922" VerticalAlignment="Bottom" Width="1.035" />
      <Path Fill="White" Stretch="Fill" Data="M7.7165418,1.2008803 C7.7360418,1.2008803 7.9509118,1.3994503 8.3610818,1.7965803 8.7386718,2.1546603 9.2009118,2.3336903 9.7477918,2.3336903 9.7933918,2.3336903 9.8584618,2.3336903 9.9431118,2.3336903 10.027712,2.3336903 10.096092,2.3336903 10.148182,2.3336903 10.428122,2.3141903 10.695052,2.2799903 10.948972,2.2311503 11.202862,2.1823503 11.505592,2.0863003 11.857172,1.9430603 12.534242,1.4743203 13.159242,1.2399403 13.732172,1.2399403 13.979552,1.2399403 14.207412,1.2692403&#xD;&#xA;14.415762,1.3278403 14.500362,1.3473403 14.550842,1.3685403 14.567132,1.3913403 14.583432,1.4141403 14.656632,1.4548403 14.786862,1.5134103 15.190492,1.7217403 15.293022,1.7429003 15.094472,1.5769103 14.895892,1.4109003 14.819392,1.2888303 14.864982,1.2107003 14.903982,1.1261003 15.055392,1.0349303 15.319082,0.93727029 15.582742,0.83957029 15.392282,0.76149029 14.747792,0.70289029 14.422262,0.59222029 14.083722,0.53688029 13.732172,0.53687029 12.950902,0.53688029&#xD;&#xA;12.153382,0.85263029 11.339592,1.4841403 11.053122,1.6403903 10.810612,1.7282803 10.612052,1.7478103 10.413472,1.7673103 10.226302,1.7706103 10.050532,1.7578103 9.5427018,1.7383103 9.2025418,1.6683103 9.0300218,1.5478503 8.8574818,1.4274103 8.7028618,1.2923203 8.5661518,1.1425703 8.4359318,1.0058603 8.3089818,0.74219029 8.1852918,0.35156029 8.1201918,0.14323029 7.9639318,0.026040285 7.7165418,2.8503415E-07 7.4626318,0.026000285 7.3063818,0.14323029 7.2477918,0.35156029&#xD;&#xA;7.1306018,0.74219029 7.0036418,1.0058603 6.8669318,1.1425703 6.7302118,1.2923203 6.5755818,1.4274103 6.4030718,1.5478503 6.2305318,1.6682903 5.8936218,1.7382803 5.3923318,1.7578103 5.2100318,1.7708103 5.0196018,1.7678103 4.8210418,1.7478103 4.6224618,1.7283103 4.3832018,1.6403903 4.1032618,1.4841403 3.2764318,0.85263029 2.4789118,0.53688029 1.7106818,0.53687029 1.3526118,0.53688029 1.0140718,0.59217029 0.69506184,0.70289029 0.044021835,0.76149029 -0.14966816,0.83961029&#xD;&#xA;0.11401184,0.93727029 0.37767184,1.0349703 0.53230184,1.1260703 0.57787184,1.2107003 0.61697184,1.2888003 0.53717184,1.4109003 0.33861184,1.5769103 0.14004184,1.7429303 0.24581184,1.7217703 0.65600184,1.5134103 0.77318184,1.4548103 0.84154184,1.4141103 0.86108184,1.3913403 0.88058184,1.3685403 0.93268184,1.3474403 1.0173318,1.3278403 1.2191418,1.2692403 1.4502618,1.2399403 1.7106818,1.2399403 2.2770918,1.2399403 2.8988318,1.4743203 3.5759218,1.9430603 3.9274818,2.0863003&#xD;&#xA;4.2285818,2.1823203 4.4792418,2.2311503 4.7298818,2.2799503 5.0016918,2.3141503 5.2946718,2.3336903 5.3402718,2.3336903 5.4037118,2.3336903 5.4851018,2.3336903 5.5665018,2.3336903 5.6364618,2.3336903 5.6950618,2.3336903 6.2354218,2.3336903 6.6976618,2.1546603 7.0817818,1.7965803 7.4854118,1.3994503 7.6970018,1.2008803 7.7165418,1.2008803 z" Height="2.334" Margin="1.288,0,1.294,0.625" VerticalAlignment="Bottom" />
      <Path Fill="Black" Stretch="Fill" Data="M3.8378901,2.9980501 L2.5878901,2.9980501 2.5878901,5.3320301 1.2500001,5.3320301 1.2500001,2.9980501 1.4816286E-07,2.9980501 1.4816286E-07,1.6699201 1.2500001,1.6699201 1.2500001,5.79071E-08 2.5878901,5.79071E-08 2.5878901,1.6699201 3.8378901,1.6699201 z" Margin="7.1,3.476,7.078,8.487" />
      <Path Fill="White" Stretch="Fill" Data="M2.9980502,2.16797 L2.9980502,1.66992 1.7480502,1.66992 1.7480502,2.4815418E-24 1.2500002,2.4815418E-24 1.2500002,1.66992 1.805115E-07,1.66992 1.805115E-07,2.16797 1.2500002,2.16797 1.2500002,4.50195 1.7480502,4.50195 1.7480502,2.16797 z" Height="4.502" Margin="7.52,3.886,7.498,0" VerticalAlignment="Top" />
    </Grid>
  </Viewbox>
</UserControl>

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 GNU General Public License (GPLv3)

Share

About the Author

Jacques Fournier
Web Developer
Canada Canada
Consyst is a Montréal-based company that focuses on the development of state of the art business solutions and productivity tools. In the last decade, Consyst has largely invested in the development of a powerful MDA® (Model Driven Architecture®) / ARAD (Architected Rapid Application Development) software tool, named REP++. REP++ contains a business rules management system, a rich program library as well as powerful frameworks. Better yet, REP++ uses a reflection approach. Reflection is the main advantage of the new .NET and J2EE platforms, and at the core of the Web Services success. Applying a reflection approach in our ARAD/MDA tool has driven our solution at the leading edge of tehnology and guarantees unequalled productivity gains. In fact, according to a recent study by Gartner Group, results showed productivity gains ranging from 2 to 1 to more than 15 to 1 with ARAD tools when compared to traditional application development tools.
 
Consyst’s REP++ solution is modular, installed effortlessly and progressively. It also seamlessly integrates to your current technology, office and information infrastructures. It reduces the migration effort to the new .NET and J2EE platforms and accelerates their learning. No other family of solutions solves so efficiently and without risks the issues of information systems management while offering such tangible benefits!
 

| Advertise | Privacy | Mobile
Web02 | 2.8.140814.1 | Last Updated 17 Mar 2013
Article Copyright 2009 by Jacques Fournier
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid