GithubHelp home page GithubHelp logo

project-cluedo's Introduction

A game of Cluedo ๐Ÿ•ต

This is a project I made when doing the Technigo bootcamp (autumn 2020). The project was to practice creating objects and arrays by creating the classic board game Cluedo.

The game lets you pick three different cards that consists of clues to a committed murder. When you have picked the clues, you can reveal the crime by clicking the button.

The problem ๐Ÿ’ก

  • To create the game I started with creating arrays of objects containing suspects, weapons and rooms.
  • I then used a math function to randomly select different suspects, weapons and rooms.
  • The random suspect, weapon and room will show after clicking on each card on the deck, which are all connected to a event handlers that executes a function for each card.
  • To reveal the mystery, I created another event handler that will execute a reveal mystery function. I also created a event handler that executes a function that can refresh the page and start a new game.
  • The code was written in VS Code and in pararell I tested and viewed the site by using devtools.
  • Before deploying the news site, I tested it on several browsers such as google chrome, safari and firefox. If I had more time I would have made the site responsive. For now it only works on computer devises.

Tech ๐Ÿ› 

  • JavaScript
  • HTML
  • CSS

View it live

A live demo of the website can be found on Netlify: https://thegameofcluedo.netlify.app/

project-cluedo's People

Contributors

lindahz avatar jenniedalgren 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.