项目作者: VanHakobyan

项目描述 :
:waxing_crescent_moon: chess, interface, inheritance , queen :woman: ,rook, bishop,
高级语言: C#
项目地址: git://github.com/VanHakobyan/InterfaceChess.git
创建时间: 2017-01-11T17:01:32Z
项目社区:https://github.com/VanHakobyan/InterfaceChess

开源协议:

下载


:earth_americas: Interface Chess Inheritance :earth_americas:





IBishop +
IRook =
IQueen

Description


  • The combination of motility of the bishop and the rook in Chess is an ideal example of interface’s inheritence.
  1. interface IQueen:IBishop,IRook
  2. {
  3. //distanceuUlimited
  4. //Queen moves horizontal, vertical and diagonally
  5. //IQueen=IBishop+IRook
  6. }

The rook and bishop versus rook endgame is a chess endgame where one player has just a rook, bishop and king, and the other player has only a rook and king. It has been studied many times through the years. This combination of material is one of the most common pawnless chess endgames. It is generally a theoretical draw, but the rook and bishop have good winning chances in practice because the defense is difficult.