summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/metapost/mpchess
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-04-21 21:18:17 +0000
committerKarl Berry <karl@freefriends.org>2023-04-21 21:18:17 +0000
commit6d27151c716103c90ca7cf570fa4282348876d78 (patch)
treec968e742730f04eaaf9e056763b39e8be74d1af9 /Master/texmf-dist/metapost/mpchess
parent00dc458fc0aeab9ca0748f91d147afe769305d27 (diff)
mpchess (21apr23)
git-svn-id: svn://tug.org/texlive/trunk@66910 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/metapost/mpchess')
-rw-r--r--Master/texmf-dist/metapost/mpchess/mpchess-chessboard.mp2
-rw-r--r--Master/texmf-dist/metapost/mpchess/mpchess.mp26
2 files changed, 14 insertions, 14 deletions
diff --git a/Master/texmf-dist/metapost/mpchess/mpchess-chessboard.mp b/Master/texmf-dist/metapost/mpchess/mpchess-chessboard.mp
index 9953776640f..d156438506a 100644
--- a/Master/texmf-dist/metapost/mpchess/mpchess-chessboard.mp
+++ b/Master/texmf-dist/metapost/mpchess/mpchess-chessboard.mp
@@ -242,7 +242,7 @@ vardef _queen_candidate(expr istart, jstart,iend,jend,wb)=
boolean output;
output = false;
if((iend<=_chessSize) and (iend>=1) and (iend<=_chessSize) and (iend>=1)):
- if((iend-istart) or (jend-jstart) or (abs(iend-istart)=abs(jend-jstart))):
+ if((iend=istart) or (jend=jstart) or (abs(iend-istart)=abs(jend-jstart))):
output:=true;
fi
fi
diff --git a/Master/texmf-dist/metapost/mpchess/mpchess.mp b/Master/texmf-dist/metapost/mpchess/mpchess.mp
index a900cd639ae..0fc53bdf594 100644
--- a/Master/texmf-dist/metapost/mpchess/mpchess.mp
+++ b/Master/texmf-dist/metapost/mpchess/mpchess.mp
@@ -2,7 +2,7 @@
%% mpchess.mp %%
%% draw chessboards with metapost %%
%% chupin@ceremade.dauphine.fr %%
-%% Version 0.4 (avril 2023) %%
+%% Version 0.5 (avril 2023) %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This work may be distributed and/or modified under the conditions of
@@ -238,20 +238,20 @@ def set_black_color(expr c)=
_blackColorSquare:=c;
enddef;
-_chess_bB:=_chess_cburnett_bB;
-_chess_bK:=_chess_cburnett_bK;
-_chess_bN:=_chess_cburnett_bN;
-_chess_bP:=_chess_cburnett_bP;
-_chess_bQ:=_chess_cburnett_bQ;
-_chess_bR:=_chess_cburnett_bR;
+_chess_bB:=_chess_mpchess_bB;
+_chess_bK:=_chess_mpchess_bK;
+_chess_bN:=_chess_mpchess_bN;
+_chess_bP:=_chess_mpchess_bP;
+_chess_bQ:=_chess_mpchess_bQ;
+_chess_bR:=_chess_mpchess_bR;
-_chess_wB:=_chess_cburnett_wB;
-_chess_wK:=_chess_cburnett_wK;
-_chess_wN:=_chess_cburnett_wN;
-_chess_wP:=_chess_cburnett_wP;
-_chess_wQ:=_chess_cburnett_wQ;
-_chess_wR:=_chess_cburnett_wR;
+_chess_wB:=_chess_mpchess_wB;
+_chess_wK:=_chess_mpchess_wK;
+_chess_wN:=_chess_mpchess_wN;
+_chess_wP:=_chess_mpchess_wP;
+_chess_wQ:=_chess_mpchess_wQ;
+_chess_wR:=_chess_mpchess_wR;
def set_pieces_theme(expr t)=
if(t="mpchess"):