No commit activity in last 3 years
No release in over 3 years
Interact with the Internet Scrabble Club server.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
~> 10.3

Runtime

 Project Readme

ISC Ruby client

Ruby client for interacting with the Internet Scrabble Club server.

Example

require 'internet_scrabble_club'

client = InternetScrabbleClub::Client.new

client.authenticate('nickname', 'password') do |login|
  # Authenticated ...
  puts login.greeting # => "Welcome to the Internet Scrabble Club, <nickname>"

  # Fetch history (last ten games)
  client.send_message('HISTORY', 'thomas92') do |history|
    puts history.entries.first # => #<OpenStruct index=1, first_player="thomas92" ... >
  end

  # Inspect a recent game
  client.send_message('EXAMINE', 'HISTORY', 'thomas92', 0) do |game|
    puts game.inspect # => #<OpenStruct date=#<Date ... >, players=["thomas92", ...] ... >
  end
end