Giter Site home page Giter Site logo

homfarnam / grid-fibonacci-game Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 4.02 MB

grid-fibonacci-game

Home Page: https://grid-fibonacci-game.vercel.app/

JavaScript 2.02% HTML 5.13% TypeScript 51.29% CSS 41.56%
react reactjs typescript javascript enzyme reacttestinglibrary tailwindcss eslint postcss prettier

grid-fibonacci-game's Introduction

Grid Fibonacci Game

This app is a Fibonacci game on a table. You should on each that you want and you can create a Fibonacci pattern. When you click on each cell you should expect to see the cell increase the number by 1 and change the background color to Yellow. If you find 5 successful Fibonacci patterns, the cells' backgrounds will change to Green, then after 2 seconds they will be empty and will change to 0.

Demo

You can see the demo here:

https://grid-fibonacci-game.vercel.app/

Installation

I started to work on this project with this package that I made before.

https://www.npmjs.com/package/@farnam/create-react-ts-tailwind-starter

You can use it like:

npx @farnam/create-react-ts-tailwind-starter name

It will clone the repo and package files and install them.

npm:

npm install

yarn:

yarn

Deployment

To Start this project run

npm:

npm run start

yarn:

yarn start

To build the project run:

npm:

npm run build

yarn:

yarn build

Testing

npm:

npm run test

yarn:

yarn test

Tech Stack

Client: React, Typescript, TailwindCSS

Tests: React testing library, Enzyme

Tasks list

  • Create function for create a matrix
  • Enable reset the game
  • Change cell backgroud color to Yellow when click
  • Change 5 cells backgroudcolors to Green when a Fibonacci pattern found
  • Clean the cells after finding the pattern
  • Create function to check if a pattern found from left side

Some more options could make this app better but I had no time for that, I can make them in the future.

  • Check the pattern from right, top and bottom side
  • Change right, top and bottom side cells background colors to Yellow, Green
  • Create a score board and add score when a pattern found
  • Change styles with state
  • Find a better solution and algorithm for checking the pattern in the table

grid-fibonacci-game's People

Contributors

homfarnam avatar

Stargazers

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