Giter Club home page Giter Club logo

brain-challenge's Introduction

Brain Challenge - Stream 1 - Front End Development

Brain Challenge is my Stream 1 project for my full stack web developer training with the Code Institute.

Deployment

See deployment at https://frankmullen.github.io/brain-challenge

About

Brain Challenge is a single-page application containing 3 games - a 'Simple Simon' style memory game, an anagram solver, and a pegboard-like pieces swap game. My rationale was to push myself as hard as I could to learn lots of Javascript to code the game logic.

The application was built using the following technologies:

  • HTML
  • CSS
  • Javascript
  • Bootstrap
  • Flexbox
  • AngularJS

Design:

I created the design myself, keeping it very simple. I found a picture for the Jumbotron on the front page, and then repeated those colours through the site.

The only problem I had with the colour was getting the boxes in the MemoryBox game to flash sufficiently brightly. In the end I went with an initial opacity of 0.5, and 1 when the boxes are clicked to make them flash.

Game Logic:

The hardest part of the whole project was making the boxes in MemoryBox flash in sequence. I finally got this to work using the setFlashInterval function in memory.js.

In the Conundrum game, the most difficult part was the timing, and I also had to be careful not to allow a second click on the 'Reveal Conundrum' button to reset the clock. I also encountered the issue that scrambling the word could technically put the letters back in the same order and give the same word, although the likelihood is millions to one. I got over this by having the scramble function run again if the same word is produced.

The BoardSwap game was straightforward, but it's the most limited of the three games.

Problems Encountered:

The one aspect of the code I didn't complete was to have the content of the instructions modals injected depending which game was being viewed. The best I could do with my knowledge of AngularJS was to create 3 separate modals. I asked for advice on how to do this in the Code Institute chat room, and Yoni Lavi, Head of Mentoring kindly forked the project and completed the task for me. Yoni's code is here, but has not yet been incorporated into my project.

brain-challenge's People

Contributors

frankmullen avatar

Watchers

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