Code Monkey home page Code Monkey logo

tic-tac-toe's Introduction

Tic-Tac-Toe

Completed through The Odin Project

cedrus32.github.io/tic-tac-toe/

This project is my first attempt at using IIFEs and factory functions to structure an application. It was a challenge to visualize how the functions worked together, where to place variables/helper functions, and how to share these objects across manager functions. While the code works, areas of future improvement include spending more time in the planning stage laying out how different functionalities communicate with each other, and cleaning up the code's organization to reduce the amount of 'getXVariable()' helpers to pass information between managers.

This is also the first project where I attempted to split JS code into separate files. I separated gameplay, player selection, and theme selection functionalities into separate JS files. An area of improvement with this approach is sharing variables across JS files, rather than repeating declaration in each.

Thanks to Stephen Ostermiller's post on tic-tac-toe strategy, Material Design Icons for theme and player icons, Jongcreative for vector design and inspiration, and SVGator and Vectornator for their svg creator tools.

tic-tac-toe's People

Contributors

cedrus32 avatar

Watchers

 avatar

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.