Files
fantacalcio-4h/formati.md
T

78 lines
1.6 KiB
Markdown
Executable File

# Formati file .json
## Formato giocatore (giocatori.json)
```json
{
"string->[numero_giocatore]": {
"nome": "string->[nome]",
"cognome": "string->[cognome]",
"soprannome": "string->[soprannome]",
"ruolo": "string->[ruolo]",
"isDestro": "boolean->[true/false]",
"partiteGiocate": "int->[numero partite giocate]",
"assist": "int->[numero assist]",
"goal": "int->[numero goal]"
},
"10 (esempio)": {
"nome": "Test",
"cognome": "Giocatore",
"soprannome": "Il Goat",
"ruolo": "Portiere",
"isDestro": true,
"partiteGiocate": 5,
"assist": 2,
"goal": 3
}
}
```
formato foto: ``` <nome>_<cognome>.png ``` (tutto minuscolo)
##
## Formato squadra (squadre.json)
```json
{
"string->[squadraX](x = string->[numero squadra])": [
"array[int]->[numero giocatori]"
],
"squadra0 (esempio)": [
1, 5, 19, 31
]
}
```
##
## Formato voti (voti.json)
```json
{
"string->[numero_giocatore]": [
"array[int->[voti 2=>10]"
],
"10 (esempio)": [
5, 9, 7.5
]
}
```
---
---
---
---
# Formati file .csv
## Formato giocatore (giocatori.csv)
### Esempio:
```csv
numero, nome, cognome, soprannome, ruolo, isDestro, partiteGiocate, assist, goal, assenze
10, Test, Giocatore, Il Goat, Portiere, true, 5, 2, 3 , 1
```
formato foto: ``` <nome>_<cognome>.png ``` (tutto minuscolo)
#
## Formato voti (voti.csv)
```csv
numero, voti
10, 5.5, 2.5, 0, 4.0
```