Giter VIP home page Giter VIP logo

neuralnaughtsandcrosses's Introduction

At the point at which the network can securely improve in real time against the users my plan will be to issue a 50$ for the last person to beat it. I think that's a pretty cool idea.

Current State of App:

A user can now play against either a naughts or a crosses network which improves, they play against it. The networks are saved to a Database as well as each of the board variations and the users will then only play against the most trained networks.

Guide:

The Client folder holds the front end of the app and also holds the network folder which is responsible for the calling, using, training and saving of the networks - in that order. The networks are trained using the Brain.js module. It uses arrays of numbers representing each board variation as it's inputs. It then shows that board to a perfect naughts and crosses bot which I created in a previous project which returns a number representing the square it has chosen to take, this is made to be the expected output and is how the networks are trained. Note that the networks are trained on each on each board after they try it live, so the changes will only come into affect the next turn.

The Server folder is responsible for interacting with the SQL database using the Knex library as well as holding the seeds and migrations for said DB. It contains get and post requests for both networks as well as post requests for the board, which are all saved but never requested by the front-end. I save them as I'm interested in how humans play naughts and crosses.

The Database has three tables: boards, crossNetwork and naughtNetwork. The boards table holds each variation of board that is played against the networks at each point of a game. The crossNetwork and naughtNetwork tables hold each variation of the networks as they get trained each turn.

What's next?

Login/Signup, New look and style, A test suite that checks how well the networks play against all situations, Heroku deployment, Live statistics for users e.g: # of Games played, More efficient trianing methods, Get rid of duplicate boards in db, Count of unique board variations in db.

neuralnaughtsandcrosses's People

Contributors

edi-rose avatar

Stargazers

Joseph van Bohemen avatar

neuralnaughtsandcrosses's Issues

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.