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.
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!
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
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:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.
See Vite Configuration Reference.
yarn install
yarn dev
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