Giter Club home page Giter Club logo

ttt's People

Contributors

tpikl avatar

Watchers

 avatar

ttt's Issues

Rows aren't rows

Turns out the rows ended up flexing as columns.
Ids are also backwards.


  • Update Box Ids
    • Flip Id
    • Add pre/suffix
    • Add function to Box class to parse Id
  • .board { flex-direction: column }
  • .row { display: flex }

Handle tie condition

When all boxes have been claimed but no winner is declared.


  • Declare tie when turns == size * size.
  • Display the Restart button as well.

Minimal icons

Replace buttons with minimal icons.
And a little bit of styling updates.

Strikethrough winning boxes

Create styling to display the strikethrough appearance of winning.


  • Remove "Winner" banner.
  • Create strikethrough styling and display upon winning.
  • Maintain prevented input after a winner is declared.

Improve game flow

General polish and updates to visuals or when UI changes occur.


View updates

  • Toggle game view:
    • #controls & #board display one at a time.
  • Victory view:
    • Remove alert().
    • Add "Victory" banner.
      • Include "Replay" & "New Game" buttons.
  • Bonus:

Flow updates

  • Improve turn flow:
    • Prevent continued turns after victory.

Remove Storage

Usage of localStorage not all that necessary right now.


  • Remove Storage class and all usage.
    • Replace all references with new global game variable.
  • Make global game variable.
    • Populate .Board.
      • Populate `.BoxMatrix'.

Favicon

Can't have the console bitching about favicon.ico 404.

AI: Random

Implement an AI that will randomly select an unmarked box.

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.