Giter VIP home page Giter VIP logo

yonih / reversi-angular2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 325 KB

A webapp implementation of the game Reversi, with artificial intelligence (computer player). It was written as my first Angular 2 project, for learning purposes. Play here:

Home Page: https://yonih.github.io/reversi-angular2/

TypeScript 85.03% JavaScript 3.52% HTML 0.58% CSS 10.87%
angular2 artificial-intelligence computer-player reversi-game

reversi-angular2's People

Contributors

angular-cli avatar yonih avatar

Watchers

 avatar

reversi-angular2's Issues

Consider Running the App in a WebWorker

Calculating the computer's move may be a long running task, depending on the depth of the game tree (the computer player's level) and number of possible moves at each step. It's better not to run such a task on the UI thread, but use a web worker to run it on a separate thread.

Alternatively, Angular 2 allows running the whole app (well, most of it) in a web worker. Angular-CLI does not yet support generating new apps in this mode, nor setting this mode for existing apps. This post explains exactly how to do this. I tried it and it worked well in development, but then I ran into problems building the app for production, so I decided not to do this for now.

Before starting to handle this issue, it would be good to perform some measurements and see if there really is a noticeable performance issue. The maximum computer level is currently 5, and it may be that computers of our days can do this calculation fast enough.

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.