Code Monkey home page Code Monkey logo

ateam's People

Contributors

ajkerzner avatar jsmiller10 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ateam's Issues

Main methods

Only one main method should be present, and it will be in Main.java.

Recommended fix:
main methods in MainScreen.java, NameScreen.java, etc. should be changed from public static void main(...) to public static void startGame(), or equivalent.

The name change will prevent running the wrong main method to start the program. This makes it easier when compressing the project into a runnable jar file.
Keeping the method static will allow us to use the method without creating an object of that class.
It is not necessary to force this method to be void.
It is not necessary to name it startGame().

In Main.java, the main method will execute:
MainScreen.startGame().

MainScreen's startGame() method should call NameScreen's whateverMethod().

My MainScreen.java class

So, I put together a working example, and verified that the code behind the game is finished.
Oh, and my working example is pretty awesome.

My recommendation is to rewrite the original MainScreen.java class with my version - it needs a lot more polish, and some more stuff added (like names, sidebars, bottom bar, connection with other screens, additional error-handling, and comments/formatting).

It also has appropriate keyboard shortcuts and whatever.

This is not because I like your code. This is because I hate autogenerated code.

Names out of order

Line circa 4, 44: * @author WalterGoerling added, * @author JosephMiller moved to after Walter's name.

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.