Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
MatiasTK committed Nov 23, 2023
1 parent 580bdd9 commit e48f978
Show file tree
Hide file tree
Showing 7 changed files with 187 additions and 41 deletions.
210 changes: 179 additions & 31 deletions mapa.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,180 @@
[
{"numeroCasilla": 0, "efecto": "Comida"},
{"x": 0, "y": 0, "ordenRecorrido": 1, "efecto": "Comida"},
{"x": 1, "y": 0, "esCamino": true, "ordenRecorrido": 3, "efecto": null},
{"x": 2, "y": 0, "esCamino": false, "ordenRecorrido": null, "efecto": null},
{"x": 3, "y": 0, "esCamino": true, "ordenRecorrido": 2, "efecto": "Comida"},
{"x": 4, "y": 0, "esCamino": true, "ordenRecorrido": 4, "efecto": null},

{"x": 0, "y": 1, "esCamino": true, "ordenRecorrido": 5, "efecto": "Bacanal"},
{"x": 1, "y": 1, "esCamino": false, "ordenRecorrido": null, "efecto": null},
{"x": 2, "y": 1, "esCamino": true, "ordenRecorrido": 6, "efecto": null},
{"x": 3, "y": 1, "esCamino": false, "ordenRecorrido": null, "efecto": null},
{"x": 4, "y": 1, "esCamino": true, "ordenRecorrido": 7, "efecto": "Fiera"},

{"x": 0, "y": 2, "esCamino": false, "ordenRecorrido": null, "efecto": null},
{"x": 1, "y": 2, "esCamino": true, "ordenRecorrido": 8, "efecto": null},
{"x": 2, "y": 2, "esCamino": true, "ordenRecorrido": 9, "efecto": "Equipamiento"},
{"x": 3, "y": 2, "esCamino": true, "ordenRecorrido": 10, "efecto": null},
{"x": 4, "y": 2, "esCamino": false, "ordenRecorrido": null, "efecto": null},

{"x": 0, "y": 3, "esCamino": true, "ordenRecorrido": 11, "efecto": "Equipamiento"},
{"x": 1, "y": 3, "esCamino": false, "ordenRecorrido": null, "efecto": null},
{"x": 2, "y": 3, "esCamino": true, "ordenRecorrido": 12, "efecto": null},
{"x": 3, "y": 3, "esCamino": false, "ordenRecorrido": null, "efecto": null},
{"x": 4, "y": 3, "esCamino": true, "ordenRecorrido": 13, "efecto": null},

{"x": 0, "y": 4, "esCamino": true, "ordenRecorrido": 14, "efecto": null},
{"x": 1, "y": 4, "esCamino": true, "ordenRecorrido": 15, "efecto": null},
{"x": 2, "y": 4, "esCamino": false, "ordenRecorrido": null, "efecto": null},
{"x": 3, "y": 4, "esCamino": true, "ordenRecorrido": 16, "efecto": null},
{"x": 4, "y": 4, "esCamino": true, "ordenRecorrido": 17, "efecto": null}
]
{
"numeroCasilla": 0,
"efecto": "Comida"
},
{
"x": 0,
"y": 0,
"ordenRecorrido": 1,
"efecto": "Comida"
},
{
"x": 1,
"y": 0,
"esCamino": true,
"ordenRecorrido": 3,
"efecto": null
},
{
"x": 2,
"y": 0,
"esCamino": false,
"ordenRecorrido": null,
"efecto": null
},
{
"x": 3,
"y": 0,
"esCamino": true,
"ordenRecorrido": 2,
"efecto": "Comida"
},
{
"x": 4,
"y": 0,
"esCamino": true,
"ordenRecorrido": 4,
"efecto": null
},
{
"x": 0,
"y": 1,
"esCamino": true,
"ordenRecorrido": 5,
"efecto": "Bacanal"
},
{
"x": 1,
"y": 1,
"esCamino": false,
"ordenRecorrido": null,
"efecto": null
},
{
"x": 2,
"y": 1,
"esCamino": true,
"ordenRecorrido": 6,
"efecto": null
},
{
"x": 3,
"y": 1,
"esCamino": false,
"ordenRecorrido": null,
"efecto": null
},
{
"x": 4,
"y": 1,
"esCamino": true,
"ordenRecorrido": 7,
"efecto": "Fiera"
},
{
"x": 0,
"y": 2,
"esCamino": false,
"ordenRecorrido": null,
"efecto": null
},
{
"x": 1,
"y": 2,
"esCamino": true,
"ordenRecorrido": 8,
"efecto": null
},
{
"x": 2,
"y": 2,
"esCamino": true,
"ordenRecorrido": 9,
"efecto": "Equipamiento"
},
{
"x": 3,
"y": 2,
"esCamino": true,
"ordenRecorrido": 10,
"efecto": null
},
{
"x": 4,
"y": 2,
"esCamino": false,
"ordenRecorrido": null,
"efecto": null
},
{
"x": 0,
"y": 3,
"esCamino": true,
"ordenRecorrido": 11,
"efecto": "Equipamiento"
},
{
"x": 1,
"y": 3,
"esCamino": false,
"ordenRecorrido": null,
"efecto": null
},
{
"x": 2,
"y": 3,
"esCamino": true,
"ordenRecorrido": 12,
"efecto": null
},
{
"x": 3,
"y": 3,
"esCamino": false,
"ordenRecorrido": null,
"efecto": null
},
{
"x": 4,
"y": 3,
"esCamino": true,
"ordenRecorrido": 13,
"efecto": null
},
{
"x": 0,
"y": 4,
"esCamino": true,
"ordenRecorrido": 14,
"efecto": null
},
{
"x": 1,
"y": 4,
"esCamino": true,
"ordenRecorrido": 15,
"efecto": null
},
{
"x": 2,
"y": 4,
"esCamino": false,
"ordenRecorrido": null,
"efecto": null
},
{
"x": 3,
"y": 4,
"esCamino": true,
"ordenRecorrido": 16,
"efecto": null
},
{
"x": 4,
"y": 4,
"esCamino": true,
"ordenRecorrido": 17,
"efecto": null
}
]
8 changes: 4 additions & 4 deletions src/main/java/edu/fiuba/algo3/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
*/
public class App extends Application {

public static void main(String[] args) {
launch();
}

@Override
public void start(Stage stage) {
var javaVersion = SystemInfo.javaVersion();
Expand All @@ -22,9 +26,5 @@ public void start(Stage stage) {
stage.show();
}

public static void main(String[] args) {
launch();
}


}
2 changes: 0 additions & 2 deletions src/main/java/edu/fiuba/algo3/Message.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package edu.fiuba.algo3;

import edu.fiuba.algo3.Localize;

public class Message extends Localize {

public Message(String esContent, String usContent) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/edu/fiuba/algo3/modelo/AlgoRoma.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import java.util.ArrayList;

public class AlgoRoma {
private final Turnos turnos;
final ArrayList<Gladiador> gladiadores;
private final Turnos turnos;

public AlgoRoma(ArrayList<Gladiador> gladiadores) {
turnos = new Turnos();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/edu/fiuba/algo3/modelo/Dado.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class Dado {

// static hace que sea un método de clase, es decir que puedas usarlo sin instanciar la clase
public static int tirar(){
public static int tirar() {
return new Random().nextInt(5) + 1;
}
}
2 changes: 1 addition & 1 deletion src/main/java/edu/fiuba/algo3/modelo/estado/Sano.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import edu.fiuba.algo3.modelo.Gladiador;

public class Sano implements Estado{
public class Sano implements Estado {
@Override
public void avanzar(Gladiador gladiador, int cantidadCasillas) {
gladiador.mover(cantidadCasillas);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/edu/fiuba/algo3/modelo/seniority/Novato.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class Novato implements Seniority {
@Override
public Seniority actualizarPuntos(Energia energia, int turnosJugados) {
energia.sumarPuntos(0);
if (turnosJugados == 8){
if (turnosJugados == 8) {
return new SemiSenior();
}
return this;
Expand Down

0 comments on commit e48f978

Please sign in to comment.