Git Product home page Git Product logo

battleship's Introduction

BusPassSystem

Dan Shrewsbury

Description:

battleship's People

Contributors

kl5pierce avatar bsparks14 avatar dshrewsbury avatar aseebart avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

gfucabam

battleship's Issues

Redesign GUI layout

We need to redesign how the GUI is working to handle both players. The current GUI creations needs to be modularized- so there will be a function creating the GUI window, with one parameter being the current player whose turn it is. That function will create the window and color each cell based on the arrays in the grid class.

Investigate Laptops' issues with GUI

Currently the GUI doesn't work and looks terrible when run on most laptops. Obviously this will be an issue as we most likely will be presenting on a laptop...

Couple the Grid.java class with the GUI

Now that the GUI owns the Player, it needs a way of checking each location to see what color the cell should be. Functionality in the Ship/Player/Grid classes may need to change or added to. Such as a Player function that is called by the GUI to check the correct grid in the Grid class to see what color that cell should be.

Outsourced Work: Initialization GUI Window

So essentially we want an initialize window which displays a basic white grid with a "Randomize" button. This button when clicked will call a randomize function that we will add in later. Just have a placeholder. There should be a simple way to color in different cells grey as after the randomize function is called we'll add change those cells grey if there is a ship there. The two files you"ll need to look at mainly are GUI.java and Battleship.java.

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.