GithubHelp home page GithubHelp logo

it114's Introduction

IT114

it114's People

Contributors

mt464 avatar

Watchers

 avatar

it114's Issues

Game Flow

Prep Phase

  • Players have X seconds to place Y ships on the grid
    Ships may overlap the same cell across players and/or across current player’s ships
  • Prep ends when timer expires or all players have placed their ships
    All pending ships not placed are lost
    Server will not send the coordinates of placed ships to the other clients (this is private information)

Create a UI page for your game area

  • List players
    Show score (i.e., ships remaining, ships hit, etc)
    Show whos turn it is
  • Have a text area to show game events
    Player’s hit or miss
    Other players will just see hit or miss, not the coordinate
    The player that the event triggered for will see the coordinate they picked along with hit or miss
  • Round countdown timer
  • Grid for battle field
    Grid should show any spot that was a hit or miss for the current player
    All grids should be in sync in terms of ship locations

Battle Phase

  • Initially random player is picked to start
  • Player has x seconds to pick an unpicked cell
    If another player has already hit the ships in this cell the server will just tell the current player that it was a miss
    The current player will not benefit from hitting already hit ships
    The current player will only see the cells of the grid from their perspective, other player’s picks will not show
  • Server determines if it was a hit or a miss
    Award points appropriately
    Send appropriate text event to text area
    Checks to see if the hit player(s) still have at least 1 ship remaining (otherwise they’re out)
  • Next player is chosen in round robin order
  • Repeat from step 2
  • Game ends when 1 player is remaining
  • Players are ranked by score

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.