Code Monkey home page Code Monkey logo

calcgamests's Introduction

Node CI Maintainability

Calc Games

This project is a set of mini-games launched from the console. The project is implemented in JavaScript and uses several technologies and libraries.

Technologies and Patterns

  • JavaScript (ES6+): Utilizes modern JavaScript features for clear and concise code.
  • Node.js: Provides the runtime environment to execute the games in a console.
  • readline-sync: A Node.js library used for reading user input synchronously, enabling interactive gameplay.
  • TypeScript: Offers strong typing over JavaScript to ensure more robust code and reduce runtime errors.
  • npm: Serves as the package manager for managing dependencies and running scripts.
  • ESLint: Assists in maintaining code quality by enforcing coding standards and identifying potential errors.
  • GitHub Actions: Automates workflows, including testing and linting, to ensure code integrity before deployment.
  • Design Patterns: Implements software design patterns such as Factory and Singleton for creating game instances and managing game flow efficiently.

Games Included

Each game focuses on a specific mathematical concept, offering a unique challenge:

  • Brain Calc (brain-calc.js): Solve arithmetic expressions.
  • Brain Even (brain-even.js): Identify if numbers are even.
  • Brain GCD (brain-gcd.js): Compute the greatest common divisor.
  • Brain Prime (brain-prime.js): Determine primality of numbers.
  • Brain Progression (brain-progression.js): Find missing numbers in sequences.

Usage

Launch games directly via the command line. Example commands to start different games:

npm run cli:games       # General entry point for all games
npm run cli:even        # Start 'Even' game
npm run cli:calc        # Start 'Calc' game
npm run cli:gcd         # Start 'GCD' game
npm run cli:prime       # Start 'Prime' game
npm run cli:progression # Start 'Progression' game

calcgamests's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.