Skip to content

marcelo-bottoni/react-minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


React Minesweeper

The good old Minesweeper, but coded in ReactJS and with a declarative UI!
Check the Demo

Table of Contents
  1. About The Project
  2. Getting Started
  3. Using the Component
  4. Contributing
  5. Contact

About The Project

React Minesweeper is a small hobby project that I've created to put in practice a new way to create interfaces for WEB applications.

The game component was entirely created with a declarative UI. That means, we have not a single CSS file in use.

Also, no image file was used to create the UI. What you might think is an image, is basically an emoticon.

I made use of Chakra UI to create the interface. And the rest of the code is simply Typescript.

Feel free to fork the project and use it as you will. Just mention me somewhere :D

Built With

The only dependency in this project is the Chakra UI, that is used to create the UI.

(back to top)

Getting Started

Running your own "React Minesweeper" project is very simple!

Installation

  1. Clone the repo
    git clone https://github.com/marcelo-bottoni/react-minesweeper
  2. Install packages
    yarn install
  3. Run the application
    yarn dev

(back to top)

Using the Component

The "React Minesweeper" project provides one component called "Minesweeper" that you can add anywhere and have the game up and running! Check the code below. It adds the game to a ReactJS page.

  import { Minesweeper } from './components/Minesweeper';

  export function SamplePage ()
  {
    return (
      <div>

        <Minesweeper size={{rows: 9, columns: 9}} bombs={10}/>

      </div>
    );
  }

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Contact

Marcelo F Bottoni - @marcelo-bottoni - marcelo.bottoni.85@gmail.com

Project Link: https://github.com/marcelo-bottoni/react-minesweeper

(back to top)

About

The good old Minesweeper, but coded in ReactJS and with a declarative UI!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published