Module: Upwords
- Defined in:
- lib/upwords/graphics.rb,
lib/upwords.rb,
lib/upwords/game.rb,
lib/upwords/move.rb,
lib/upwords/word.rb,
lib/upwords/board.rb,
lib/upwords/shape.rb,
lib/upwords/cursor.rb,
lib/upwords/player.rb,
lib/upwords/version.rb,
lib/upwords/dictionary.rb,
lib/upwords/letter_bank.rb,
lib/upwords/letter_rack.rb,
lib/upwords/move_manager.rb
Overview
require ‘colored’
Defined Under Namespace
Classes: Board, Cursor, Dictionary, Game, Graphics, IllegalMove, LetterBank, LetterRack, Move, MoveManager, Player, Shape, Word
Constant Summary collapse
- ALL_LETTERS =
Letters available in 10 x 10 version of Upwords
{ 8 => ["E"], 7 => ["A", "I", "O"], 6 => ["S"], 5 => ["D", "L", "M", "N", "R", "T", "U"], 4 => ["C"], 3 => ["B", "F", "G", "H", "P"], 2 => ["K", "W", "Y"], 1 => ["J", "Qu", "V", "X", "Z"] }.flat_map {|count, letters| letters * count}
- ESCAPE =
Curses Key Constants
27- SPACE =
' '- DELETE =
127- ENTER =
10- OSPD_FILE =
Official Scrabble Player Dictionary file
File.join(File.dirname(__FILE__), "../data/ospd.txt")
- VERSION =
"0.1.1"