Un progetto per analizzare statistiche scacchistiche ed elaborare strategie di gioco personalizzate
-
notebooks/parse_databases.ipynb
- apri il file
- con
open(<filepath>)
- con
- parse games in dizionario
- con
parse_database(<file>,<n_games>,<ply>) - funzione implementata in src/parsepgn.py
- con
- enrich data in dizionario
- con
enrich_database(<file>,<dizionario>,<n_more_games>,<ply>) - funzione implementata in src/parsepgn.py
- con
- salva dizionario
- con
%storemagic - naming convention:
- data_nicknameFile_nGames_ply_nMoreGames
- multiples of 1000 can be shortened with k
- con
- apri il file
-
notebooks/prepare_databases.ipynb
- leggi dizionario
- con
%store -rmagic
- con
- crea dizionarii leggeri di white and black
- con classe
LightDatabase(<dizionario>,<student-player>) - funzione non implementata in src/lightdb.py
- con classe
- salva dizionarii leggeri
- con
%storemagic - naming convention:
- light_w/b_nicknameFile_nGames_ply_nMoreGames
- multiples of 1000 can be shortened with k
- con
- leggi dizionario
(Forse con qualche plugin, non ricordo)
ctrl shift pper aprire Command Palette,- then select
Markdown preview
shortcut:
ctrl shift v
**Assumptions
First, I assume that you have Jupyter and Python installed (e.g. through Anaconda etc). Next, I assume that the Jupyther notebook file .ipynb is saved on your computer.
From terminal
On a terminal, navigate to the folder that contains the jupyter notebook file
Type jupyter notebook <namefile>
Press Enter
Alternative 1
On a terminal, navigate to the folder that contains the jupyter notebook file
Type jupyter notebook
You should now see the name of your file in the Jupyter navigation screen
Select and open the .jpynb file with left click
Alternative 2
Open Jupyter in any way (either from terminal with the command jupyter notebook or through the OS search bar or through Anaconda, or any other way)
Navigate in the Jupyter navigation screen, to the folder containing the file
Select and open the .jpynb file
Come mai ho cominciato a scrivere in inglese?