Skip to content

lout33/Akinator

Repository files navigation

Akinator Clone

An Angular-based implementation of the Akinator game concept, where the application attempts to guess what you're thinking of by asking a series of questions.

Features

  • Interactive question-answer based gameplay
  • Decision tree based logic for character/item guessing
  • Responsive web interface
  • Real-time game state management

Prerequisites

  • Node.js (v12 or higher recommended)
  • npm (comes with Node.js)
  • Angular CLI (npm install -g @angular/cli)

Installation

  1. Clone this repository:

    git clone [repository-url]
  2. Install dependencies:

    npm install

Usage

  1. Start the development server:

    npm start
  2. Open your browser and navigate to http://localhost:4200

  3. Follow the on-screen instructions to play the game:

    • Think of a character or item
    • Answer the questions with Yes/No
    • See if the application can guess what you're thinking of!

Development

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Technologies Used

  • Angular 9
  • TypeScript
  • RxJS
  • Angular CDK

License

This project is licensed under the MIT License - see the LICENSE file for details.