Git Product home page Git Product logo

tictactoe-php's Introduction

PHP Tic Tac Toe by Ken

This was created for ACIT4850 - Lab01 @ BCIT - British Columbia Institute of Technology

Everything is contained inside the index.php file.

The Game class contains everything needed to run the game. Simply initialize/instantiate the class inside the <body> tag to begin.

NEW in v1.6:

  • FEATURE: Global Game Stats (Win/Lose/Tie/Total) per board size

FEATURES:

  • Single-Player Mode Only
  • Decent AI logical programming
  • Player goes first
  • Decent sized game board
  • Ability to choose the grid size (ie 3x3, 5x5, etc. up to 15x15)
  • Reset / Start New Game button
  • Decent line checks
  • Winning line emphasized (highlighted), and non-winning squares faded.
  • Error Checking (includes, but not limited to...)
    • Invalid character value(s) in game board URL
    • Invalid character string length in game board URL
    • Too many game pieces of one side on the game board

PLANNED:

  • Ability to choose whether playing two player locally with a friend or with the AI
  • Perhaps extract all the in-line CSS into its own css file...maybe.

I've also have this repository set to continuously deploy to Azure, hence there are these additional files:

  • .deployment
  • deploy.cmd

tictactoe-php's People

Contributors

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