Skip to content
Snippets Groups Projects
Commit 33cc53f6 authored by marpana's avatar marpana
Browse files

Subir proyecto

parents
Branches
No related tags found
1 merge request!1Última versión con obtención de historial corregida, más funciones y...
Showing
with 137 additions and 0 deletions
#variables
RANGOMM=50
MAX_JUGADORES=3
SUBIDA_RANGO=50
#rutas
#LISTA_JUGADORES = "lista_jugadores.txt"
#HISTORIAL_PARTIDAS = "/home/mariopanpal/Escritorio/historial_partidas.txt"
#bbdd
USUARIO = mpanadero
PASS =Avenciamongo99
DBNAME =BD_COP
#Variables Glicko
Q = 0.00575646273
C = 34.6
PTOSELODEFAULT = 1500
RDDEFAULT = 350
PERIODOSSINJUGARDEFAULT = 0
#Indices
JUGADORES_IDUSUARIO = 0
JUGADORES_PTOSELO = 1
JUGADORES_RD = 2
JUGADORES_PERIODOSSINJUGAR = 3
JUGADORES_NIVEL = 4
PARTIDAS_IDPARTIDA = 0
PARTIDAS_IDJUGADOR = 1
PARTIDAS_RESULTADO = 2
\ No newline at end of file
module.exports = {
//variables
RANGOMM: process.env.RANGOMM || 50,
MAX_JUGADORES: process.env.MAX_JUGADORES || 3,
SUBIDA_RANGO: process.env.SUBIDA_RANGO || 50,
//rutas
LISTA_JUGADORES: process.env.LISTA_JUGADORES,
HISTORIAL_PARTIDAS: process.env.HISTORIAL_PARTIDAS,
//bbdd
USUARIO: process.env.USUARIO || 'mpanadero',
PASS: process.env.PASS || 'Avenciamongo99',
DBNAME: process.env.DBNAME || 'BD_COP',
//Variables Glicko
Q: process.env.Q || (Math.LN10/400),
C: process.env.C || 34.6,
PTOSELODEFAULT: process.env.PTOSELODEFAULT || 1500,
RDDEFAULT: process.env.RDDEFAULT || 350,
PERIODOSSINJUGARDEFAULT: process.env.PERIODOSSINJUGARDEFAULT || 0,
//Indices
JUGADORES_IDUSUARIO: process.env.JUGADORES_IDUSUARIO,
JUGADORES_PTOSELO: process.env.JUGADORES_PTOSELO,
JUGADORES_RD: process.env.JUGADORES_RD,
JUGADORES_PERIODOSSINJUGAR: process.env.JUGADORES_PERIODOSSINJUGAR,
JUGADORES_NIVEL: process.env.JUGADORES_NIVEL,
PARTIDAS_IDPARTIDA: process.env.PARTIDAS_IDPARTIDA,
PARTIDAS_IDJUGADOR: process.env.PARTIDAS_IDJUGADOR,
PARTIDAS_RESULTADO: process.env.PARTIDAS_RESULTADO
}
This diff is collapsed.
id_usuario||ptos_ELO||RD||periodosAFK||nivel
1||1600||280||0||0
2||1713||189||0||1
3||1500||350||0||0
4||1610||300||1||0
5||1587||239||0||0
6||1711||130||0||2
7||1600||241||1||1
8||1574||200||0||0
9||1580||295||0||0
10||1543||333||0||2
const mongoose = require('mongoose')
const Schema = mongoose.Schema;
const historialPartidaSchema = new Schema({
id_partida: String,
id_jugador : String,
resultado: String,
id_modo: String,
finalizada: String
},{versionKey:false})
const HistorialPartidas = mongoose.model('historialpartidas', historialPartidaSchema);
module.exports = HistorialPartidas;
\ No newline at end of file
const mongoose = require('mongoose')
const Schema = mongoose.Schema;
const listaJugadoresSchema = new Schema({
id_jugador: String,
ptosELO: String,
RD: String,
periodosSinJugar: String,
id_modo: String
},{versionKey:false})
const ListaJugadores = mongoose.model('listajugadores', listaJugadoresSchema);
module.exports = ListaJugadores;
\ No newline at end of file
../browserslist/cli.js
\ No newline at end of file
../csvtojson/bin/csvtojson
\ No newline at end of file
../esprima/bin/esparse.js
\ No newline at end of file
../esprima/bin/esvalidate.js
\ No newline at end of file
../import-local/fixtures/cli.js
\ No newline at end of file
../is-ci/bin.js
\ No newline at end of file
../jest/bin/jest.js
\ No newline at end of file
../js-yaml/bin/js-yaml.js
\ No newline at end of file
../jsesc/bin/jsesc
\ No newline at end of file
../json5/lib/cli.js
\ No newline at end of file
../mime/cli.js
\ No newline at end of file
../which/bin/node-which
\ No newline at end of file
../nodemon/bin/nodemon.js
\ No newline at end of file
../touch/bin/nodetouch.js
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment