Giter VIP home page Giter VIP logo

project-two-the-sheep-farmer's Introduction

The Sheep Farmer

The Sheep Farmer is a simple yet competitive game. It was created using HTML, CSS and Javascript. By clicking each sheep image the user will then be able to deposit the sheep to the trailer. There is a built in timer calculating the duration it took for the user to complete the task, therefore giving the opportunity to beat you and your friend’s time with each round that you play.

Various device breakpoints for responsive design

Features

Existing Features

  • The Sheep Farmer Page Heading

    • Featured at the top of the page, The Title Header is immediately visible to the user upon loading the page, the user will be able to see the name of the game.

Header

  • The Start Menu

    • This is the menu that appears on load of the webpage, from here the user will be able to click the start button to start the game.

Start menu

  • The Game Area

    • This is the area where the sheep will be displayed. The user can then click the sheep to move them to the trailer, when the user has clicked on all of the sheep the game will terminate.

Game

  • The End Menu

    -This menu will be displayed when the game terminates, it will also display to a decimal point how many seconds it took for the user to complete this task.

End menu

  • The Tractor

    • This part of the page appears below the field, when the user starts the game and clicks on a sheep it will appear in the trailer as a user response.

Tractor

Testing

I firstly tested the buttons to make sure they all showed and concealed the correct elements, this all worked accordingly.

Then I tested the sheep, Making sure they were all visible and correctly positioned at the right time in both the field and in the trailer.

I then finished by testing the timer by publicly releasing the website to my family and friends, all of which returned to me with positive feedback, satisfactory results and scores as low as 1 second.

Validator Testing

  • HTML
    • No errors were returned when passing through the official W3C validator
  • CSS
  • JavaScript
    • No errors were found when passing through the official Jshint validator
      • The following metrics were returned:
      • There are 10 functions in this file.
      • Function with the largest signature takes 0 arguments, while the median is 0.
      • Largest function has 5 statements in it, while the median is 5.
      • The most complex function has a cyclomatic complexity value of 2 while the median is 2.

Unfixed Bugs

There are no detected unfixed bugs

Deployment

  • This site was deployed to GitHub pages.
  • This is the dploymnt porcedure:
    • In the GitHub repository, navigate to the Settings tab and then to the pages tab along the left
    • From the source section drop-down menu, select the main branch
    • Once the main branch has been selected click save and after a short amount of time refresh the page untill the link appears green and says 'Your site is published at https://titanjoe.github.io/project-two-the-sheep-farmer/'

Credits

Content

Media

project-two-the-sheep-farmer's People

Contributors

titanjoe 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.