Giter VIP home page Giter VIP logo

laoqipan's Introduction

Laoqipan

This is the source code for laoqipan.com, a site for playing the board game Go online with other players around the world or against the computer: GNUGO.

If you have suggestions or questions, please post them on the Issue Tracker.

Currently, laoqipan lack a good way to submit bug, and demonstration issues. In order to fix that, I'm planning to rewrite the go board javascript model. Hopefully it can be finished before the Chinese Spring Festival in 2012.

Setup

Software Requirements

When you have all the software above installed, make some necessary changes to config/database.example.yml, then follow the instructions below:

bundle
cp config/database.example.yml config/database.yml
cp config/private.example.yml config/private.yml
rake db:create db:migrate

Type

juggernaut

to start the juggernaut push server. Then type

foreman start

That's it! Now you use your browser navigating to the address provided by thin.

Chinese is the default language, but you can easily switch to English by clicking the 'English Version' link on the website.

Contributing

I maintain this site for my personal hobby and entertainment. I warmly welcome language YAML file fixing under 'config/locale', as English is not my native speaking language.

If you feel really necessary to submit a patch to me, please follow the instructions below:

Creating and Submitting a Patch

If you feel really necessary to submit a patch, I prefer that you send a pull request on GitHub.

  1. Create a fork of the upstream repository by visiting https://github.com/imonyse/laoqipan/fork. If you feel insecure, here's a great guide: http://help.github.com/forking/

  2. Clone your repository to a local copy: git clone https://[email protected]/yourusername/laoqipan.git

  3. This is important: Create a so-called topic branch: git checkout -tb name-of-my-patch where "name-of-my-patch" is a short but descriptive name of the patch you're about to create. Don't worry about the perfect name though -- you can change this name at any time later on.

  4. Hack! Make your changes, additions, etc and commit them.

  5. Run 'rake test', make sure all the tests for server get passed.

  6. Run 'rails s' if you haven't done already. Now go to 'http://localhost:3000/jasmine', make sure all tests get green.

  7. Send a pull request to the upstream repository's owner by visiting your repository's site at github (i.e. https://github.com/yourusername/laoqipan) and press the "Pull Request" button. Here's a good guide on pull requests: http://help.github.com/pull-requests/

Use one topic branch per feature -- don't mix different kinds of patches in the same branch. Instead, merge them all together into your master branch (or develop everything in your master and then cherry-pick-and-merge into the different topic branches). Git provides for an extremely flexible workflow, which in many ways causes more confusion than it helps you when new to collaborative software development. The guides provided by GitHub at http://help.github.com/ are a really good starting point and reference. If you are fixing a ticket, a convenient way to name the branch is to use the URL slug from the bug tracker, like this: git checkout -tb 53-feature-manually-select-language.

Credits

Much of the work could not be done without watching Ryan Bates' amazing rails casts.

laoqipan's People

Contributors

imonyse avatar

Watchers

James Cloos avatar askender 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.