Skip to content

BryannYeap/Hangman---ReactJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HANGMAN

This is a solo web development project using HTML, CSS, and JavaScript, making use of the ReactJS framework. The project itself is a game called Hangman.

Navigate here to try out this web project yourself: HANGMAN PROJECT

Notable Features

Keyboard and Mouse

You can use either your keyboard or mouse to provide input.

Media responsiveness

The game will react responsively and shrink or grow according to the resolution of the users' media screen. For instance,

Desktop View (1280x720):

desktop-view

Tablet View (960x600):

tablet-view

Mobile View (360x640):

mobile-view

SVG

The hangman drawing was manually made using SVG.

CSS

  • The man getting hung has slight animation made using CSS's keyframes
  • Hovering over letter that have not been guessed result in a change of cursor and colour to indicate that they are guessable.
  • After guessing a letter, it will be blacked out. Additionally, hovering over them will no longer result in a change of cursor, nor colour, indicating that they are not guessable.
  • Restart game button also changes the cursor and colour upon hovering. Additionally, the button shrinks a little upon pressing the button.

Developer Guide

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm install

If the app is not able to run due to missing dependencies, you can try running this command before starting the app.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.