Code Monkey home page Code Monkey logo

java-games's People

Contributors

fabiofrogger avatar glank avatar sofiangrh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

java-games's Issues

Maintaining this Repo

I have been thinking how this one will be maintained efficiently. Personally, I want to unit test every game, but this is really hard because all the games are in the same repo. And so many refactors, I want to do also.

I have one suggestion, we keep this repo, but we just provide links to the games. Each game will be a separate repo. It's really hard to maintain when a repo contains several projects particularly when we want to release the games, each should be released separately.

Hoping there is a response. Thanks.

Tarea refactoring

Extrac SuperClass

Comet y Field crean una alta interdependencia entre ellas y dificulta el mantenimiento del código. Si se necesita cambiar una funcionabilidad o agregar una nueva característica, podría ser necesario hacer cambio en las ambas clases

Cambios

class GameElement {
    public void move(Player targetPlayer) {
        // Lógica de movimiento común
    }
}

class Player extends GameElement {
    // Atributos y operaciones específicos de los jugadores
}

class Ball extends GameElement {
    // Atributos y operaciones específicos de la pelota
}

class Comet {
    // Operaciones relacionadas con el cometa
}

class Field {
    private Player player1;
    private Player player2;
    private Ball ball;
    
    public void update(boolean p1, boolean p2) {
        // ...
        player2.move(player1);
        ball.move(player1);
        // ...
        player1.move(player2);
        ball.move(player2);
        // ...
    }
}

Comentarios

Al usar una base común que contiene las reglas generales, el código se vuelve más sencillo de entender, ya que no hay repetición de estas reglas en diferentes lugares. Esto hace que los cambios y mejoras futuras sean más fáciles y rápidos de hacer, ya que solo necesitas ajustar la base común y no todos los lugares que usan esas reglas.

games making other running programs like 'disabled'.

I tried running Frogger and blackjack, and it's fine. However, what annoys me, it's like taking control other applications (in this case on linux, my terminal), prevent me from typing anything into it whenever the game on the run. Seems like, it's resetting the applications UI every seconds.

Tetris

When a piece has the ability to rotate and it all the way to the right, you are unable to rotate that piece. The only way to do so is to move the piece over and rotate from there.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.