Git Product home page Git Product logo

electrontictactoe's Introduction

ElectronTicTacToe

This is a desktop built of the project over here: https://github.com/FrankenApps/TicTacToe.

I do not recommend this yet, because it currently has a little bug, meanwhile you can try the web version, which you can find here:http://frankenapps.github.io/TicTacToe/

Installation

You will need node.js and electron installed on your machine.

  1. Install electron if you haven't already: $ npm install -g electron-prebuilt
  2. Clone the Repo: $ git clone https://github.com/FrankenApps/ElectronTicTacToe
  3. Open the App: $ electron ElectronTicTacToe

The code

The code is in a very bad condition, at the time when I wrote it I did not know about any standards or how you would express a logic in code correctly, so don't bother reading through it. And have some fun playing the game...

How to play

There are 3 options:

  1. Two humans play against each other. That's simple: Select your color, name and who wants to start, and then click the fields alternately, until you get the message that one of you has won, or that there is a draw.

  2. Human against Computer. Tick one of the checkboxes for Computer and then select if you, or the Computer should start. Of course you may change the colors and names, too.

  3. Computer vs Computer. Tick both of the checkboxes and change all the other settings if you wish to, and then hit the start game button, in order to see which computer wins. Of course the Computer who starts all the time will have a higher quota than the other one.

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.