Giter VIP home page Giter VIP logo

js-tic-tac-toe's Introduction

Hi there ๐Ÿ‘‹

My name is Antoine Tournepiche, and I'm a french IT developer.

You can find some of my projects here, and a ton of forks too.

Some stats about me

AntoineJT's Github Stats

js-tic-tac-toe's People

Contributors

antoinejt avatar

Watchers

 avatar

js-tic-tac-toe's Issues

Reorganize workspace

  • Put source files into a src/ folder
  • Remove the WIP things (ex: classicAI and learningAI)
  • Create a branch to work on WIP things
  • Remove sql.js dependency (needs a complete rewrite of learningAI)
  • Remove sql-util.js as long as it needs a complete rewrite / it's not necessary

Improve JavaScript files

  • Replace some for loops by foreach ones
  • Make some functions nested (like _reset() which is badly named and scoped)
  • Find a way to avoid to use global variables
  • Improve code readability and maintainability by avoiding to assign different things multiple times to some stupid variable like cells in _reset() function
  • Make use of ternary conditions when appropriate
  • Remove document.write( things...
  • Avoid to declare some variables by separating their names with a comma
  • Make some modifications to tictactoe.js (and btw to classicAI and learningAI too) to avoid calling some global scoped functions like aiTurn( or something like that
  • Use template literals instead of string concat when needed

Rewrite Readme.md

  • Credit the used images (even the reworked one).
  • Rewrite it properly like the AEA / RFIC (java) readme file
  • If needed, don't forget to credit dependencies

Improve style

  • Use CSS variables to improve maintainability
  • Improve style : colors, animations, etc.

Rewrite HTML files

The actual HTML files are just a bench of duplicated code. It needs to be improved, as long as it's not a bad practice and btw that's bad for maintainability.

  • Create an index.html (unique?) webpage, used to select the AI level (none, hardcoded or a learning one)
  • Remove all of the old HTML stuff

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.