Skip to content

leftstick/react-memory-game

Repository files navigation

react-memory-game

A tiny game written in react. It's inspired by IgorMinar's Memory-Game. You can view the online demo here.

If you are looking for angular5 version, check it here

If you are looking for vue2 version, check it here

Components Tree

Presentational Components break down

  1. MemoryGame, the whole game board
  2. Dashboard, the panel on the top, including "logo", "progress", "best result"
  3. Logo, on the left of Dashboard, showing the game Logo
  4. MatchInfo, on the center of Dashboard, showing the progress of this round
  5. Score, on the right of Dashboard, showing the best result
  6. Chessboard, on the center of Game, the playing area
  7. Card, each card in the Chessboard
  8. PlayStatus, the footer part, displaying current status of game

File Structure

react-memory-game
├── public
│   └── favicon.ico
├── src
│   ├── assets
│   │   ├── 8-ball.png
│   │   ├── back.png
│   │   ├── baked-potato.png
│   │   ├── dinosaur.png
│   │   ├── kronos.png
│   │   ├── rocket.png
│   │   ├── skinny-unicorn.png
│   │   ├── that-guy.png
│   │   └── zeppelin.png
│   ├── helpers
│   │   ├── game.ts
│   │   ├── index.ts
│   │   ├── object.ts
│   │   └── view.ts
│   ├── layouts
│   │   └── index.ts
│   ├── models
│   │   └── useGameModel.ts
│   ├── pages
│   │   ├── components
│   │   ├── document.ejs
│   │   ├── index.less
│   │   └── index.tsx
│   └── ITypes.ts
├── package.json
├── tsconfig.json
└── typings.d.ts

Want Having a try locally?

#cloning code
git clone https://github.com/leftstick/react-memory-game.git
cd react-memory-game

#install dependencies
yarn
#start debug server
yarn start

Now, view the demo at http://localhost:8080

LICENSE

MIT License

About

A tiny game written in react. It's inspired by IgorMinar's Memory-Game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published