Code Monkey home page Code Monkey logo

calvindotsg / battleship_head-first-javascript.github.io Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 146 KB

Self-directed learning on Head First JavaScript programming, with my own understanding illustrated in comprehensive notes/comments along the javascript code.

Home Page: https://battleship.calvin.sg

HTML 23.15% JavaScript 65.09% CSS 11.76%
javascript head-first-javascript web-app web-game github-pages-website html-css-javascript font-awesome-icons

battleship_head-first-javascript.github.io's Introduction

Battleship game

Proof of concept site: battleship.calvin.sg

This project uses MVC framework within its Javascript code, separating the logic and presentation layer behind Battleship web app into 3 logical components:

Model

  • Contains game logic and data.
  • Keeps state of game, contains logic relates to state changes.

View:

  • Presents data to user and handles user interaction.
  • Keep display up to date with messages, hits and misses

Controller:

  • Interface between Model and View components.
  • Keeps tracks of user's guess, progress, user input and brings to model

Self-directed learning on Head First JavaScript programming, with my own understanding illustrated in comprehensive notes/comments along the javascript code.

Media assets, Javascript, HTML, CSS codes are adapted from the physical book and website.

Hosted here on GitHub pages, no WordPress or Jekyll template required!

Reference:

  1. Freeman, E. and Robson, E., 2014. Head First JavaScript programming. 1st ed. Sebastopol, California, United States of America: O'Reilly Media, Inc, pp.317 - 380 (Chapter 8: Building an app, Bring it all together).
  2. Freeman, E. and Robson, E., n.d. Head First JavaScript Programming. [online] Wickedlysmart.com. Available at: https://www.wickedlysmart.com/hfjs/ [Accessed 5 June 2021].

Check out my other works hosted on GitHub pages here!

slickshots.calvin.sg
diving.calvin.sg

battleship_head-first-javascript.github.io's People

Contributors

calvindotsg avatar

Watchers

 avatar

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.