/colorize

Pick the odd one out game using colors

Primary LanguageVue

Colorize

A simple game where you have to find the odd one out. The game is written in Vue and TypeScript. Feature requests and bug reports are welcome.

How to play

The regular game mode has three levels of difficulty. The first level has a 3x3 grid, the second level has a 5x5 grid and the third level has a 7x7 grid. The game will start with the first level and will increase the level after 10 rounds. The game will end after 30 rounds. You will also be under the pressure of a timer so you have to be quick. The amount of time per round will also reduce as the level increases.

Good luck!

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Customize configuration

See Vite Configuration Reference.

Project Setup

yarn install

Compile and Hot-Reload for Development

yarn dev

Type-Check, Compile and Minify for Production

yarn build

Run Unit Tests with Vitest

yarn test:unit

Run End-to-End Tests with Cypress

yarn build
yarn test:e2e # or `yarn test:e2e:ci` for headless testing

Lint with ESLint

yarn lint

Format with Prettier

yarn format