Latest Updates:
Normal Topic Software for chess teaching (Read 2685 times)
an ordinary chessplayer
Junior Member
**
Offline


I used to be not bad.

Posts: 76
Location: Columbus, OH (USA)
Joined: 01/02/15
Re: Software for chess teaching
Reply #9 - 08/13/17 at 19:55:31
Post Tools
Thanks Tony. The attachment option is there now. Fortunately my script was fewer than 11,000 characters so I was able to just post it.
  
Back to top
 
IP Logged
 
GMTonyKosten
YaBB Administrator
*****
Offline


Mr Dynamic?

Posts: 2897
Location: Clermont-Ferrand
Joined: 12/19/02
Gender: Male
Re: Software for chess teaching
Reply #8 - 08/12/17 at 09:47:43
Post Tools
an ordinary chessplayer wrote on 08/10/17 at 19:19:44:
But in the Computer "Software for chess teaching" thread there is no option to attach a file.


I should be able to sort this out, I'll try now Smiley
  
Back to top
WWW  
IP Logged
 
an ordinary chessplayer
Junior Member
**
Offline


I used to be not bad.

Posts: 76
Location: Columbus, OH (USA)
Joined: 01/02/15
Re: Software for chess teaching
Reply #7 - 08/11/17 at 14:15:30
Post Tools
As advertised, a script for converting epd to rtf.

Code (Perl)
Select All
# fen2rtf2pdf.awk 2016.10.30T1339
# was epd2rtf.awk 2012.04.22T1927
# usage:
# $ gawk.exe -f epd2rtf.awk -v show_NR=1 -v show_wb=1 -- any.epd > any.rtf

#winword.exe any.rft
#set margins to "moderate" (top/bottom 1 right/left 0.75)
#edit cover page
#save as any.pdf

BEGIN {

# Chess Merida
# easiest is to do this in excel with =CHAR(32..120)
# !""""""""#
# $tMvWlVmT%
# $OoOoOoOo%
# $ + + + +%
# $+ + + + %
# $ + + + +%
# $+ + + + %
# $pPpPpPpP%
# $RnBqKbNr%
#/(((((((()

  dblborder["corner tl"] = "!" ;
  dblborder["corner tr"] = "#" ;
  dblborder["corner bl"] = "/" ;
  dblborder["corner br"] = ")" ;
  dblborder["side t"] = "\"" ;
  dblborder["side l"] = "$" ;
  dblborder["side r"] = "%" ;
  dblborder["side b"] = "(" ;

  dblborder2["corner tl"] = "A" ;
  dblborder2["corner tr"] = "S" ;
  dblborder2["corner bl"] = "D" ;
  dblborder2["corner br"] = "F" ;

  sngborder["corner tl"] = "1" ;
  sngborder["corner tr"] = "3" ;
  sngborder["corner bl"] = "7" ;
  sngborder["corner br"] = "9" ;

  sngborder2["corner tl"] = "a" ;
  sngborder2["corner tr"] = "s" ;
  sngborder2["corner bl"] = "d" ;
  sngborder2["corner br"] = "f" ;

  sngborder["side t"] = "2" ;
  sngborder["side l"] = "4" ;
  sngborder["side r"] = "5" ;
  sngborder["side b"] = "8" ;

# white square lower case (r+f mod 2 == 0)
# black square upper case (r+f mod 2 == 1)
  diagfont["K",0] = "k" ;
  diagfont["K",1] = "K" ;
  diagfont["Q",0] = "q" ;
  diagfont["Q",1] = "Q" ;
  diagfont["R",0] = "r" ;
  diagfont["R",1] = "R" ;
  diagfont["B",0] = "b" ;
  diagfont["B",1] = "B" ;
  diagfont["N",0] = "n" ;
  diagfont["N",1] = "N" ;
  diagfont["P",0] = "p" ;
  diagfont["P",1] = "P" ;
  diagfont["k",0] = "l" ;
  diagfont["k",1] = "L" ;
  diagfont["q",0] = "w" ;
  diagfont["q",1] = "W" ;
  diagfont["r",0] = "t" ;
  diagfont["r",1] = "T" ;
  diagfont["b",0] = "v" ;
  diagfont["b",1] = "V" ;
  diagfont["n",0] = "m" ;
  diagfont["n",1] = "M" ;
  diagfont["p",0] = "o" ;
  diagfont["p",1] = "O" ;

# empty squares
  diagfont["-",0] = " " ;
  diagfont["-",1] = "+" ;

# chessbase-style square markers
  diagfont[".",0] = "." ;
  diagfont[".",1] = ":" ;
  diagfont["x",0] = "x" ;
  diagfont["x",1] = "X" ;

# copyright symbol
  diagfont["c",0] = "?" ;

}

NR==1 {

  print "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl" ;
  print "  {\\f0\\fswiss\\fcharset0 Arial;}" ;
  print "  {\\f1\\fswiss\\fprq2\\fcharset2 Chess Merida;}" ;
  print "}" ;
  print "{\\*\\generator Msftedit 5.41.21.2508;}" ;
  print "\\viewkind4\\uc1\\pard\\f0\\fs40" ;
  print FILENAME ;

}

{

  FENstring = $1 ;
  delete FENarray ;
  delete filecn ;

  rankcn = split(FENstring, ranksarray, "/");
  for (r=1;r<=rankcn;r++) {
    fenfilecn = split(ranksarray[r], filearray, "");
    f = 0 ;
	for (fenf=1;fenf<=fenfilecn;fenf++) {
	  if (filearray[fenf] ~ /[1-8]/)
		for (i=1;i<=filearray[fenf];i++) {
		  f = f + 1 ;
		  FENarray[r, f] = "-" ;
	    }
	  else
		for (i=1;i<=1;i++) {
		  f = f + 1 ;
	      FENarray[r, f] = filearray[fenf] ;
	    }
	}
	filecn[r] = f ;
  }

  print "\\page" ;
  print "\\f0\\fs40" ;

  if (show_NR)
    print NR "\\par" ;

  print "\\f1\\fs96" ;

#black to move
  if (show_wb) {
    rankstring = diagfont["-",0] ;
    for (f=1;f<=7;f++)
      rankstring = rankstring diagfont["-",0] ;
    if ($2=="b")
      rankstring = rankstring diagfont["x",1] ;
    else
      rankstring = rankstring diagfont["-",0] ;
    rankstring = rankstring diagfont["-",0] ;
    print rankstring "\\par" ;
  }

#diagram
  rankstring = dblborder["corner tl"] ;
  for (f=1;f<=8;f++)
    rankstring = rankstring dblborder["side t"] ;
  rankstring = rankstring dblborder["corner tr"] ;
  print rankstring "\\par" ;
  for (r=1;r<=rankcn;r++) {
    rankstring = dblborder["side l"] ;
	for (f=1;f<=filecn[r];f++)
      rankstring = rankstring diagfont[FENarray[r, f],((r + f) % 2)] ;
    rankstring = rankstring dblborder["side r"] ;
    print  rankstring "\\par" ;
  }
  rankstring = dblborder["corner bl"] ;
  for (f=1;f<=8;f++)
    rankstring = rankstring dblborder["side b"] ;
  rankstring = rankstring dblborder["corner br"] ;
  print rankstring "\\par" ;

#white to move
  if (show_wb) {
    rankstring = diagfont["-",0] ;
    for (f=1;f<=7;f++)
      rankstring = rankstring diagfont["-",0] ;
    if ($2=="w")
      rankstring = rankstring diagfont["x",0] ;
    else
      rankstring = rankstring diagfont["-",0] ;
    rankstring = rankstring diagfont["-",0] ;
    print rankstring "\\par" ;
  }

}

END {
  print "}" ;
}
 

  
Back to top
 
IP Logged
 
an ordinary chessplayer
Junior Member
**
Offline


I used to be not bad.

Posts: 76
Location: Columbus, OH (USA)
Joined: 01/02/15
Re: Software for chess teaching
Reply #6 - 08/10/17 at 19:19:44
Post Tools
an ordinary chessplayer wrote on 08/09/17 at 04:34:30:
Was the ability to attach files taken away? I can't find it.

To answer my own question, I was able to attach a file in the Endgame "B v B Spassky - R.Byrne, m(6) 1974" thread, and can do so again even now. But in the Computer "Software for chess teaching" thread there is no option to attach a file.

B v B : http://www.chesspub.com/cgi-bin/chess/YaBB.pl?num=1499195861
Software : http://www.chesspub.com/cgi-bin/chess/YaBB.pl?num=1276478478
  
Back to top
 
IP Logged
 
Bibs
God Member
*****
Offline



Posts: 2025
Joined: 10/24/06
Re: Software for chess teaching
Reply #5 - 08/09/17 at 09:23:32
Post Tools
A few years late, but noting the OP.

Obvious choice perhaps, but this is always great with kids: http://www.chessgames.com/perl/chessgame?gid=1233404
  
Back to top
 
IP Logged
 
an ordinary chessplayer
Junior Member
**
Offline


I used to be not bad.

Posts: 76
Location: Columbus, OH (USA)
Joined: 01/02/15
Re: Software for chess teaching
Reply #4 - 08/09/17 at 04:34:30
Post Tools
Was the ability to attach files taken away? I can't find it.
  
Back to top
 
IP Logged
 
an ordinary chessplayer
Junior Member
**
Offline


I used to be not bad.

Posts: 76
Location: Columbus, OH (USA)
Joined: 01/02/15
Re: Software for chess teaching
Reply #3 - 07/07/17 at 00:58:41
Post Tools
an ordinary chessplayer wrote on 07/06/17 at 18:05:12:
When I get back from vacation I will post an awk script I wrote to output .rtf document from .fen file.

When I get back from vacation I will purchase the latest ChessBase.
  
Back to top
 
IP Logged
 
proustiskeen
God Member
*****
Offline


Hello from Omaha!

Posts: 554
Joined: 08/11/08
Re: Software for chess teaching
Reply #2 - 07/06/17 at 23:16:08
Post Tools
You can now setup illegal positions in Chessbase. Problem solved.
  
Back to top
WWW  
IP Logged
 
an ordinary chessplayer
Junior Member
**
Offline


I used to be not bad.

Posts: 76
Location: Columbus, OH (USA)
Joined: 01/02/15
Re: Software for chess teaching
Reply #1 - 07/06/17 at 18:05:12
Post Tools
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *

chesspub can set up the positions. I have done it in rtf as well, using a downloaded font. No way to move the pieces, but you could create a series of diagrams, save as pdf, and use the next page button.

Edited:
In quick testing, WinBoard 4.6.0 (and therefore Xboard) will allow to setup illegal positions (use Edit Position), save to fen, load from fen. When I get back from vacation I will post an awk script I wrote to output .rtf document from .fen file.
« Last Edit: 07/06/17 at 21:04:14 by an ordinary chessplayer »  
Back to top
 
IP Logged
 
proustiskeen
God Member
*****
Offline


Hello from Omaha!

Posts: 554
Joined: 08/11/08
Software for chess teaching
06/14/10 at 02:21:17
Post Tools
Hi everyone.  I'm going to be doing a bit of teaching at a chess camp, and I'm looking for a piece of software that will allow me to set up and project illegal positions on a screen.  In particular, there are some positions with just knights and pawns, or just pawns, that can be useful for beginners who are just learning how pieces move.  Does anyone know of any software that will allow you to project illegal positions and make moves on the board as well?

Oh, and if you have favorite positions illustrating key themes, or short games that you know kids love, please feel free to share them.  I don't want to run out of material! Smiley
  
Back to top
WWW  
IP Logged
 
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo