Module: Upwords
- Defined in:
- lib/upwords/move.rb,
lib/upwords.rb,
lib/upwords/ui.rb,
lib/upwords/game.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
Encapsules a player Contains basic AI logic
Defined Under Namespace
Classes: Board, Cursor, Dictionary, Game, IllegalMove, LetterBank, LetterRack, Move, MoveManager, Player, Shape, UI, 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
- RED =
Curses Color Constants
1
- YELLOW =
2
- OSPD_FILE =
Official Scrabble Player Dictionary file
File.join(File.dirname(__FILE__), "../data/ospd.txt")
- VERSION =
"0.2.1"