Skip to content

Instantly share code, notes, and snippets.

@umaz
umaz / vs_human_othello.rb
Created February 9, 2017 08:10
対人対戦できるオセロ
# -*- coding: utf-8 -*-
#定数の定義
MAX_TURN = 60 #最大ターン数
BOARD_SIZE = 8 #盤のサイズ(8*8)
EMPTY = 0 #空きマス
BLACK = 1 #黒石のマス
WHITE = -1 #白石のマス
WALL = 2 #番兵(ひっくり返すときに使う)