Dan Shrewsbury
Description:
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.
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...
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.
We currently only have a red square for the current player. We need a grid that displays your own layout- a gray cell where there is a ship.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.