首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > phpcheckmate是用PHP编写的象棋类框架

phpcheckmate是用PHP编写的象棋类框架

  • 资源大小:27.50 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: php 框架 象棋 编写 phpcheckmate

资 源 简 介

Note: This project has been forked on Github at https://github.com/NicoNet/PHPcheckmate phpcheckmate is a chess framework written in php. Providing moves validation and game recording allowing us to tack pieces back. The project is object oriented and contains several classes. phpcheckmate is a php portage of the piece of code written in Perl by Brian Richardson. ``` $game = new Game(); $game->make_move("e2", "e3"); $game->make_move("f7", "f6"); $game->make_move("d2", "d3"); $game->make_move("g7", "g5"); $game->make_move("d1", "h5"); vardump($game->playercheckmated("black")); //true #Player2 checkmated var_dump($game->result()); //1 #Game is over $game->takebackmove(); #Take back last move vardump($game->playercheckmated("black")); //false #Player2 NOT chec

文 件 列 表

game
MoveListEntry.class.php
MoveList.class.php
index.php
piece
Rook.class.php
Queen.class.php
Pawn.class.php
Knight.class.php
King.class.php
index.php
Bishop.class.php
Board.class.php
Game.class.php
index.php
LICENCE
Piece.class.php
README

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 杨波 12小时前 成为了本站会员

  • ZS 12小时前 成为了本站会员

  • . 1天前 成为了本站会员

  • 奋斗 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • 一天不玩浑身难受 2天前 成为了本站会员

  • Aloha 2天前 成为了本站会员

  • 嘻嘻嘻 2天前 成为了本站会员

  • maihaoweilai 2天前 成为了本站会员

  • 紫麟鹿 2天前 成为了本站会员