Code Monkey home page Code Monkey logo

group20_project2's Introduction

cs361 Project 2

This is the code you will use as a starting point for Project 2. The code you have been given has the back end for a battleship game. All instructions for this assignment are available on Canvas.

Tips and tricks:

To implement this code, you will be using Java Spark.

You will make your life MUCH easier if you use GSON to seralize/deserialize the JSON objects to/from java objects.

You might also find the jquery documentation useful.

group20_project2's People

Contributors

aoleson avatar leian7 avatar nelsonni avatar kbajno avatar farnhamr avatar

Watchers

James Cloos avatar Michael Hilton avatar  avatar  avatar  avatar  avatar

group20_project2's Issues

previous ship "re-placing" functionality broken

Ships used to be able to be re-placed in new positions/orientations and represented as such to the user on the frontend; this was possible since the background-color of the user's board was first overwritten with blue before displaying the new game state with updated ship placements, which were represented with a yellow background-color.

After merging in @kbajno 's attractive #7 , this functionality has been unwittingly deprecated since displayGameState is no longer able to overwrite a background-image with a mere background-color!! The icons are transparent... now the user can theoretically fill up the board with 20 battleships' worth of ship icons even while the backend correctly reports the battleship's updated locations.

One way to fix this bug would be to replace the user board's blue background-color with a blue background-image that would essentially replace any old ship icons.

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.