Once a position is calculated, it is transformed into a FEN so no move calculation is requiredĠ9-06-2021 : multi-games version : PGN are analysed and stored. Return the process number on the right most column ex : 26028Ġ8-24-2021 : this version is working : goal reached ! one game at a time (using localstorage) it does not support variations nor commentsīut is its functional ! I'm glad I could code my first react app If you have closed it then yarn start witl ask you to run the server on another port Usefull tip : How to kill VS code local server ?Ĭtrl-c is working if you haven't closed the vsc terminal The info block with show a texteara and a button and after the PGN is saved and analysed will list the turns, allowing the user to click on the different moves to show the corresponding positions on the board. The first step is to be able to import a PGN game, save it to the localStorage, show a board with its figures and pawns at their right starting positions.īoard placed on the left and an information block showing beside it on the right. to know more about we need to know the position after the 11th turn. Means a white bishop took something on c6 square. shows that the King's white knight moved to the f3 square (coming from g1) : how do we know it was the king's side Knight ? According to the knight's allowed moves the king's side knight is the only figure able to move from the game's starting position to f3 !ġ2. Pawns are not named : d4 and d5 are pawn moves because only the destination square is givenįigures are described by the letter in uppercase :Ģ. So we'll have to teach it to the computer : according to the moves allowed to pawns, (move forward, take diagonnaly) the pawn on a4 can only come from the a2 square so the board should move the a2 pawn to the a4 square. d4 d5 means that the first whites' move put the d2 pawn on the d4 square and that the blacks' response was symetrical : a7 to a5 (King's opening)īecause we know every white pawn stands on the 2nd row at the beginning of the game a7 Ra8 0-1Įach number is a turn with first the whites' move and second the blacks' moveġ. these bits of information are enclosed in brackets : ġ. these are equivalent of comments made in a code. General information : when did it take place ? who were the players ? Who won ? and so on. PGN have two parts separated by an empty lineġ. So in order to learn it why not code a simple game reader ?Ĭhess games are described thru PGN notation (PGN stands for 'Portable Game Notation') which is very human friendly : I'd like to master Reactjs which is useful in my field of knowledge and activity making or using some useful pure UI components.switching the store to redux to learn it.Load games only if version number != server.put the PGN analysis on the server side.Allow personal notes on openings : stored on the server in a openingNotes file.put the openings on the server in a json file with a version number to sync w localStorage.deciding on the moves to play and noting down the results Openings study : choosing an opening with its variations and illustrating it with games.recognize comments in PGN and allow to add new ones.ToDo next : as the ECO is not always provided use the moves of the game to find out the right opening.Ġ.11 => : It is possible to paste several games in the textarea (provided the game separator is a double \nĠ.10 => : this version is still buggy with players inversion and moving wrong piece on the board (ex : the wrong rook) Also showing more information on hover in game list like elos ans opening. This version analyses PGN games and show them in a listĠ.20 => : from the 3rd move, a clickable list of identical games is displayed with the possibility to switch between games at the same moveĠ.17 => : the game list is sorted by date and the filtered count is displayedĠ.16 => : adding a select to filter games by player and filter by opening refers to the main lineĠ.15 => : adding a select to filter games by openingĠ.14 => : Correcting the bug of the wrong rookĠ.13 => : Displaying opening name and moves while reading the game thanks to the opening collection with fen of !Ġ.12 => : Introducing openings : an ECO informations is transformes into an opening information.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |