Giter Site home page Giter Site logo

gojs's Introduction

gojs

Go board game in Javascript.

syntax

var some_var = GoBoard(container_id, length, board_size);

  • container_id: an element container with with a unique id attribute

  • length: render the element container into a square of length length

  • board_size: render the go board of grid board_size x board_size. Must be an integer between 2 and 19.

usage

  1. Place <script src="path/to/gojs.js"></script> in the head element, or right before the body tag.

  2. Place an empty div container with a unique id attribute. A div element is preferred, but other elements such as p may be used.

    Example: <div id="go_board"></div>

    Note: If the container is not empty, gojs will empty it!

  3. Render the go board via

    var go_board = GoBoard("go_board", 500, 19)

demo

Click here to view the demo

colophon

License

MIT License

gojs's People

Contributors

dashed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gojs's Issues

Code review

Review code base for changes and organization.

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.