Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 29 lines (22 sloc) 0.392 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
require './game' # => consequent classes

class Game
  attr_accessor :board, :players
  
  def get_number_human_players
    return 2
  end
  
  def get_board_size
    return 8 # standard size
  end
end

class Board
  attr_accessor :cells, :size
  
  def change_board( cells )
    @cells = cells
  end
end

class Player
  attr_accessor :color, :count
end

class Cell
  attr_accessor :owner
end
Something went wrong with that request. Please try again.