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.
- Interactive question-answer based gameplay
- Decision tree based logic for character/item guessing
- Responsive web interface
- Real-time game state management
- Node.js (v12 or higher recommended)
- npm (comes with Node.js)
- Angular CLI (
npm install -g @angular/cli
)
-
Clone this repository:
git clone [repository-url]
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser and navigate to
http://localhost:4200
-
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!
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.
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
.
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
- Angular 9
- TypeScript
- RxJS
- Angular CDK
This project is licensed under the MIT License - see the LICENSE file for details.