Skip to content

Instantly share code, notes, and snippets.

Pressman: Chess like game with all queens

Board Setup: The board is basically like Chess with 64 squares (8X8). The difference being that the squares are not checkered (alternatively colored).

Its a two player game. Both the players have a side across the horizontal board - two rows (16 squares) of pieces [white or black]. The player with black pieces start the game.

Home row: The first row from each opponents end is called home row.

Game play: The players move alternatively. The moves are:

@chandresh
chandresh / image.rb
Created January 9, 2012 01:48
Mercury image upload using mongoid and paperclip
class Mercury::Image
include Mongoid::Document
include Mongoid::Timestamps
field :image_file_name, type: String
field :image_content_type, type: String
field :image_file_size, type: String
field :image_updated_at, type: DateTime
# -- todo: add stuff related to paperclip