Skip to content

Repository files navigation

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://yourusername@github.com/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.

About

A site that you can play the board game go (It used to use HTML CANVAS render the board, see the canvas branch for more information.)

Resources

Stars

7 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages