• This repository has been archived on 12/Dec/2021
  • Stars
    star
    141
  • Rank 250,636 (Top 6 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 13 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Rails 3 app for playing the board game Go online.

Go vs Go

This is the source code for govsgo.com, a site for playing the board game Go online with other players or against the computer.

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

Setup

Ruby 1.9.2 is required. If you're using RVM it should automatically switch to 1.9.2 when entering the directory.

Run the following commands to set it up. Note the Homebrew command to install GNU Go and Beanstalk. You may want to use a different packaging system or install them from the source.

bundle
cp config/database.example.yml config/database.yml
cp config/private.example.yml config/private.yml
rake db:create db:migrate
brew install gnu-go beanstalk

You can start up the server with rails s and run the specs with rake.

Background Process

In production, the computer moves are handled in a background process because GNU Go can take a while and we don't want to tie up the Rails process during this time.

If you want to test the background process, set background_process: true in your config/private.yml file. Next run beanstalkd and script/worker. to start up the processes. Alternatively you can use god to start and monitor it. See the config/god.rb file.

Fix GNU Go

If GNU Go seems to be stuck, it may have run into a game or two that it cannot complete. Run the following command in the rails console to clear out any old games that are stuck.

Game.where("current_player_id IS NULL AND finished_at IS NULL and updated_at < ?", 1.day.ago).update_all(:finished_at, Time.zone.now)

Then restart Beanstalkd, the worker, and web server.

sudo /etc/init.d/beanstalkd restart
god restart govsgo-worker
touch tmp/restart.txt

Credits

This site was originally created for Rails Rumble 2010 by Ryan Bates, James Edward Gray II and Phil Bates.

More Repositories

1

cancan

Authorization Gem for Ruby on Rails.
Ruby
6,283
star
2

ruby-warrior

Game written in Ruby for learning Ruby and artificial intelligence.
Ruby
3,776
star
3

letter_opener

Preview mail in the browser instead of sending.
Ruby
3,633
star
4

dotfiles

config files for zsh, bash, completions, gem, git, irb, rails
Shell
2,288
star
5

nifty-generators

A collection of useful Rails generator scripts.
Ruby
1,983
star
6

nested_form

Rails plugin to conveniently handle multiple models in a single form.
Ruby
1,793
star
7

private_pub

Handle pub/sub messaging through private channels in Rails using Faye.
Ruby
865
star
8

railscasts-episodes

NOT MAINTAINED. See README.
Ruby
845
star
9

railscasts

railscasts.com in open source (outdated).
Ruby
760
star
10

populator

Mass populate an Active Record database.
Ruby
392
star
11

complex-form-examples

Various ways to handle multi-model forms in Rails.
Ruby
304
star
12

trusted-params

Rails plugin for overriding attr_accessible protection.
Ruby
149
star
13

mustard

Simple "must" expectations for tests and specs in Ruby.
Ruby
144
star
14

xapit

High level Ruby library for interacting with Xapian, a full text search engine.
Ruby
140
star
15

rails-templates

Template scripts for creating new rails applications.
Ruby
134
star
16

cocoa-web-app-example

A Cocoa application to demonstrate the interaction between Objective-C and JavaScript in a WebView.
Objective-C
96
star
17

importex

Import an Excel file using Ruby.
Ruby
90
star
18

uniquify

Generate a unique, random token for Active Record.
Ruby
88
star
19

textmate-themes

My TextMate themes (includes Railscasts theme)
70
star
20

acts-as-list

NOT MAINTAINED. Gem version of acts_as_list Rails plugin.
Ruby
65
star
21

abingo

Fork of A/Bingo plugin for Rails.
Ruby
55
star
22

railscasts-scripts

Scripts used internally when producing RailsCasts
Ruby
52
star
23

scope-builder

Build up named scopes conditionally.
Ruby
51
star
24

rmov

Ruby wrapper for the QuickTime C API.
C
48
star
25

render-caching

Cache render calls in Rails controllers.
Ruby
45
star
26

enlighten

Interactive ruby debugger in the browser.
Ruby
42
star
27

static_actions

Rails plugin to quickly make named routes for non-RESTful actions.
Ruby
39
star
28

searchify

Rails plugin to add extra searching functionality to models.
Ruby
37
star
29

selenium-on-rails

This repo is no longer maintained, see the official repository by paytonrules.
JavaScript
34
star
30

ryan-on-rails.tmbundle

Some TextMate snippets I use when working with Ruby and Rails.
26
star
31

dailystamp

Source code for my Rails Rumble 2009 submission
Ruby
23
star
32

url_formatter

Format and validate a URL in Active Record. Example gem for RailsCasts.
Ruby
18
star
33

association-freezer

Freeze a belongs_to association in Active Record.
Ruby
17
star
34

admiteer

Rails Rumble 2007 project by Jack Canty, Kelli Shaver, and Ryan Bates
17
star
35

todo-list.tmbundle

A simple TextMate bundle to manage a todo lists.
14
star
36

xapit-sync

Rails plugin to automatically reload a Xapian database when models change.
Ruby
13
star
37

myideadrawer

Rails Rumble 2008 entry by Ryan Bates and Kelli Shaver
Ruby
13
star
38

blog-screencast

Example blog application built in the offical 15 minute Rails screencast.
Ruby
12
star
39

ryan-bates.tmbundle

Miscellaneous commands and snippets I use in TextMate.
11
star
40

advent-2022

Advent of Code in Elixir
Elixir
11
star
41

maestro

Piano exercise game written in MacRuby.
Ruby
11
star
42

vscode-railscasts-theme

RailsCasts Theme for VS Code
7
star
43

ryanb.github.io

Personal site for Ryan Bates
5
star
44

vscode-erb-syntax

ERB Syntax for VS Code
5
star
45

xapit-server

Rack server for interacting with a Xapian database remotely through Xapit.
Ruby
4
star
46

swapper

Ruby script for swapping two elements on a line (to be used in text editors).
3
star
47

bookmarklets

JavaScript
1
star
48

wallaby-rails-7-1-2

Example Rails 7.1.2 app with Wallaby
Ruby
1
star