Skip to content

Abyss-fallers/Bogo-sort

Repository files navigation

🚀 Bogo Sort

✨ Contributors

Oberlev D
Oberlev Daniil
Shevchenko T
Shevchenko Timofey

🔥 Tech Stack

General

React
React
TypeScript
TypeScript
HTML
HTML
CSS
CSS
Vite
Vite

Code quality

eslint
ESlint
prettier
Prettier
Prettier
Stylelint

🏗️ Project Structure:

├── public/            # Source folder with favicons
├── src/               # Source files of the project
│   ├── components/    # Folder with TS components
│   ├── styles/        # Folder with CSS styles
│   ├── main.tsx       # Entry point of the application
│   └── index.css      # Root style file
├── index.html         # HTML file of the main page
├── SECURITY.md        # File with security policy
└── README.md          # README file with documentation

📁 Installation and Running

To install and run the project, execute the following commands

npm install
npm run dev

Building

npm run build

📚 Description of basic classes

BogoSort Component

The BogoSort component manages the state and functionality for performing the Bogo Sort algorithm.

Properties:

  • items: An array of numbers representing the items to be sorted.
  • sorted: A boolean indicating whether the items are currently sorted in ascending order.
  • itemCount: An integer representing the total number of items in the array.
  • sorting: A boolean flag indicating whether the sorting process is currently in progress.

Functionality:

The BogoSort component utilizes these properties to display the current state of the sorting process and allows users to initiate the sorting algorithm when desired.