Skip to content

Instantly share code, notes, and snippets.

@hitode909
hitode909 / pi.c
Created February 20, 2009 08:20 — forked from cocontusfine/pi.c
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define MAX_NUM 999999999
typedef struct{
double ax;
double ay;
class Stone
@@STONE_COLORS = [:white, :black]
def initialize(heads_color)
raise "Invalid type" unless @@STONE_COLORS.include?(heads_color)
@heads = heads_color
end
attr_reader :heads # 表の色