Giter Site home page Giter Site logo

simple-caro's Introduction

Simple Caro Game

Caro is an advanced tic-tac-toe game. Game rules are described as in the below section. This game is a Node.js web application built with Express framework and ws module. UI being used is Materialize CSS.

See the Demo.

Tips: You can test the game by using 2 different browsers.

Game rules

  • Turn-based game for 2 players
  • For each of player's turn, that player places a piece on the table board.
  • Player who has a five consecutive pieces which are not nipped by 2 pieces of the opponent in one row, or column, or diagonal will be the winner.

Game examples

WIN:

. . . . . . .
. X X X X X .
. . . . . . .
. . .
. X .
. X .
. X .
. X .
. X .
. . .
. . . . . . .
. X . . . . .
. . X . . . .
. . . X . . .
. . . . X . .
. . . . . X .
. . . . . . .
. . . . . . .
. . . . . X .
. . . . X . .
. . . X . . .
. . X . . . .
. X . . . . .
. . . . . . .
. . . . . . .
O X X X X X .
. . . . . . .
. . . . . . . .
O X X X X X . O
. . . . . . . .
...

NOT WIN:

. . . . . . .
O X X X X X O
. . . . . . .
. . . . . . . .
. X X X X X X .
. . . . . . . .

...

Run

  • In order to run this application, you must have Node.js with NPM installed on your machine.
  • After downloading the source code, navigate to the Simple-Caro folder.
  • To update the components, type npm update.
  • After updating, either use npm start or node index.js command to run the server.

Contributing

Contributions are appreciated in the form of pull requests. To maintain code readability and maintainability, please walk through the below guidelines.

  • Please have a semicolon (;) explicitly to end a statement in Node code.
  • Please avoid using TAB character, instead use 4 spaces.
  • Please keep things simple, don't hesitate to give comment for complex code handling.

License

Apache License

Please see LICENSE or this for the details.

simple-caro's People

Contributors

maixuanhan avatar dependabot[bot] avatar

Stargazers

Thuong Luong avatar Sil avatar Huy avatar

Watchers

James Cloos avatar JUNO_OKYO avatar  avatar

simple-caro's Issues

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.