GithubHelp home page GithubHelp logo

tic-tac-rawr's Introduction

Tic Tac Rawr

A web browser game of tic-tac-toe with a cute 16-bit monster theme.

Attempt 1. Day 1 and 2. I started off with the html structure and added the javascript and css as I went. I used divs and IDs to identify each box and manually coded all the winning possibilities for the win check. It's working ok..

Attempt 2. Day 3. There has to be a better way.. so for this attempt I tried focusing on making it work first using arrays in javascript, and using a code that's more adaptable (eg. for a bigger board). Instead of listing all the winning possibilities, I created functions to check for rows, columns, and the two diagonal win combos.

Day 4 Tried adding some animation to the win function.

You can find the game here: https://cset00.github.io/tic-tac-rawr/

Unresolved yet:

  • Responsiveness. I'd probably have a set size for bigger screens, and adaptable size for smaller screens..
  • While the javascript could handle a bigger board (eg. 5x5 instead of 3x3), the html and css can't handle that yet.. At the moment I'm using display flex-wrap with a set container size.
  • I've added a win tally, but when a player wins with 2 winning combos, it adds 2 to the score instead of just 1 (extra points for creating double combos?!) :P

It'd be cool to refine the animations and styling in the future.

tic-tac-rawr's People

Contributors

cset00 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.