GithubHelp home page GithubHelp logo

patrick8639 / reversi-oxygen Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 11.83 MB

Application to play Reversi / Othello

License: GNU General Public License v3.0

HTML 2.67% C# 1.38% CSS 1.39% Pascal 94.55%

reversi-oxygen's People

Contributors

patrick8639 avatar

Watchers

 avatar

reversi-oxygen's Issues

Try to optimize the moves generation

The idea is to keep the border of the current position: the set of all the squares near a disc on the board.
To generate the available moves, it is only necessary to look at these places.
Downside: after each move, the border must be updated.

Speed before optimization (Intel Core i9-9900KS):

Level 1: 4 positions in 0.542ms (135.600µs per position)
Level 2: 12 positions in 0.424ms (35.300µs per position)
Level 3: 56 positions in 0.032ms (0.575µs per position)
Level 4: 244 positions in 0.145ms (0.595µs per position)
Level 5: 1396 positions in 0.575ms (0.412µs per position)
Level 6: 8200 positions in 3.217ms (0.392µs per position)
Level 7: 55092 positions in 18.817ms (0.342µs per position)
Level 8: 390216 positions in 118.066ms (0.303µs per position)
Level 9: 3005264 positions in 798.158ms (0.266µs per position)
Level 10: 24571000 positions in 6017.700ms (0.245µs per position)

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.