Code Monkey home page Code Monkey logo

group20_project3'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_project3's People

Contributors

aoleson avatar leian7 avatar kbajno avatar nelsonni avatar farnhamr avatar

Watchers

James Cloos avatar Michael Hilton avatar  avatar  avatar  avatar  avatar

group20_project3's Issues

Change the model to allow for civilian ships

Create new subclass Civilian that inherits from Ship. A Civilian ship should be different from a regular Ship by having an extra functionality where one hit on any of its squares sinks the rest of its squares immediately.

fix displayed ship length for user and AI

  • have all ships' ending squares satisfy their length requirement, i.e. aircraft is 5 squares long, so starting square should be at 1 and ending square should be at 5, etc.
  • fix tests accordingly
  • fix ship method that retrieves a ship's squares accordingly

Write tests for civilian ships

  • fix tests that currently break
  • update test coverage to get 90%+ in all files
  • do tests for civilian ships

Ideally, these tests should shoot at a civilian ship, then check if the implementation was correct by verifying that the rest of the ship squares are marked off when the ship is hit.

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.