[Sugar-devel] My application idea : chess learning software. What do you think ?
laurent bernabe
laurent.bernabe at gmail.com
Wed Oct 2 05:44:47 EDT 2013
Hi,
First, I apologize for the length of this mail.
______________________________________________
My new idea (I've already exposed it on the mailing list, but without all
specifications) :
I think about making a new Web activity : a kind of chess learning software
series.
So, the first program I would like to code is about the pieces moves.
How could it be presented ? I am thinking of the following pattern :
For each piece kind :
- the theory part (special organization for the king, who can't be left
in check) : where I use the board, if possible in a smart way with arrows
(and why not animations if I can).
- the quizz part : where an alone piece is placed randomly on a square
(special organisation for the pawn, which can't be neither on 1st rank nor
on the 8th), and the student is asked if it can move to another square.
- the practical part (If I manage) : where this time, the piece is not
alone, and the position is a valid position.
Sound ambitious, doesn't it ?
Also, I don't want to rely on GCompris software, for several reasons :
- I would like to manage software from my own, though GCompris offers
some common features.
- I discussed with the GCompris maintainer, and he said me that GCompris
chess programs rely on GNU chess engine.
- Finally, I want to write my program as a Web activity.
________________________________________________________________
Advices request for Javascript :
Also, I have encountered problems with Javascript for making classes,
particularly for managing fields visibility :
- I know that var keyword help make them private.
- But I also know that, if I make them in the constructor, the
constructor will be the only function that will be able to access them.
So that makes me into trouble, as "I come" from a more POO language as Java.
So how can I deal with it ? I've looked over Prototype library, but I
haven't seen any talk about the fields visibility in the documentation.
____________________________________________________________________
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20131002/026cb19f/attachment.html>
More information about the Sugar-devel
mailing list