Cambiar los valores de puntaje

master
Araozu 2020-11-26 15:40:38 -05:00
parent 3edd71b632
commit 386a22eb08
6 changed files with 56 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

View File

@ -60,6 +60,10 @@ const routes: Array<RouteRecordRaw> = [
{
path: "bonus/",
component: () => import(/* webpackChunkName: "tutorial_bonus" */ "../views/Tutorial/views/Bonus.vue")
},
{
path: "puntaje/",
component: () => import(/* webpackChunkName: "tutorial_puntaje" */ "../views/Tutorial/views/Puntaje.vue")
}
]
}

View File

@ -314,13 +314,6 @@ div
grupo-cartas(:cartas="[128, 128, 128, 192, 192, 192, 224, 224, 224, 256, 256]")
p No se acumula con ninguna otra combinación.
p Formula para puntos: 1000 + 270 * x^2 - 18 x^3
p Máxima cantidad de puntos: 10 - equivale a 10000
img(src="/img/formula_puntos_rimajon.png")
br
img(src="/img/grafica_puntos_rimajon.png")
//
</template>

View File

@ -1,10 +1,10 @@
<template lang="pug">
div.barra-lateral
router-link(to="/tutorial/") Inicio
router-link(to="/tutorial") Inicio
hr
router-link(to="/tutorial/cartas/") Cartas
router-link(to="/tutorial/cartas") Cartas
br
router-link(to="/tutorial/mano/") Mano
router-link(to="/tutorial/mano") Mano
div.inner
router-link(to="/tutorial/mano/par") Par
br
@ -51,7 +51,7 @@ div.barra-lateral
br
router-link(to="/") Dragon del jugador
router-link(to="/") Puntaje
router-link(to="/tutorial/puntaje") Puntaje
div.inner
router-link(to="/") Al ganar robando la carta ganadora
br

View File

@ -0,0 +1,48 @@
<template lang="pug">
div
h2 Puntaje
p Primero se obtienen los puntos otorgados por los yaku.
p Luego se obtienen los puntos otorgados por los bonus.
p La suma de estos dos es la cantidad de puntos total. Luego se busca esa cantidad en la tabla:
table.tabla-puntaje
thead
tr
td Puntos
td Monedas
tbody
tr(v-for="(p, i) in puntos")
td {{ i * 0.5 }}
td {{ p }}
//
</template>
<script lang="ts">
import { defineComponent } from "vue";
const puntos = [0, 0, 1000, 2000, 3000, 4500, 6500, 9000, 12000, 15000, 18000, 21000, 24000, 28000,
35000, 36500, 38000, 39500, 41000, 42500, 50000];
export default defineComponent({
name: "Puntaje",
setup() {
return {
puntos
}
}
});
</script>
<style scoped lang="sass">
.tabla-puntaje
text-align: center
font-size: 1.15rem
td
border: solid 1px var(--color-texto)
//
</style>