Giter Site home page Giter Site logo

jaanpre / jocdelpenjat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mateusz-pocztowski/hangmangame-js

0.0 1.0 0.0 8.79 MB

The hangman - JavaScript

Home Page: https://mateusz-pocztowski.github.io/HangmanGame-JS/

HTML 15.01% JavaScript 52.18% CSS 32.80%

jocdelpenjat's Introduction

Joc del penjat: Falles.

A fork of @mateusz-pocztowski Hangman game. This is a special version for K12 classroom with words about the Falles (traditional celebration in the city of Valencia, Spain).

Demo here.

Getting Started

Customize

Add passwords and categories in main.js.

  // ...
  // Add your passwords arrays
  const falles = ['Monument faller', 'Ninot indultat', 'Nit del foc', 'Focs artificials', 'Xocolate amb xurros', 'Estendard', 'Fallera i faller', 'Pinta', 'Senyera', 'Bunyols', 'Dolçaina i tabalet', 'Banda de música', 'Mascletà', 'Ofrena de flors', 'Crida', 'Despertà', 'Manteleta', 'Cercaviles', 'Albaes', 'Casal faller', 'Artista faller', 'Pólvora', 'Terratrèmol', 'Tro de bac', 'Fallera major', 'Llibret faller', 'Concurs de paelles', 'Cavalcada del ninot', 'Entrega de premis', 'Monyos', 'Mocador'];
  

  const categories = [falles];
  const category = Math.floor(Math.random() * categories.length);
  const index = Math.floor(Math.random() * categories[category].length);
  const categoryName = ['FALLES']; // Add your categories
  
  const alphabet = 'ABCÇDEFGHIJKLMNOPQRSTUVWXYZ'.split(""); // Add your alphabet
  // ...

Change the background image and sound effects in img and audio folders.

Running

Start the game with index.html.

How to play?

hangman

Gameplay is fairly simple: You're presented with a blank line. The number of blanks is the number of letters in the word. You'll be prompted to guess a letter. If the word contains the letter you enter, you'll fill in the blanks. If not, a part of the man is added to the gallows. Complete the entire man and you lose! Complete the entire word and you win!

License

The MIT License (MIT)

Acknowledgments

  • Thanks to @mateusz-pocztowski

jocdelpenjat's People

Contributors

mateusz-pocztowski avatar jaanpre avatar

Watchers

James Cloos 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.