#include </home/clem/local/src/opie/noncore/games/wordgame/wordgame.h>
Collaboration diagram for ComputerPlayer:

Public Member Functions | |
| ComputerPlayer (Board *b, Rack *r) | |
| ~ComputerPlayer () | |
| bool | step () |
Private Member Functions | |
| void | findBest (QPoint at, const QPoint &d, const QDawg::Node *node, ulong used, uchar *nletter, const Tile **tiles, int n, Tile *blankvalues, int blused) |
| void | noteChoice (const Tile **tiles, int n, const QPoint &d, const Tile *blankvalues, int blused) |
Private Attributes | |
| Board * | board |
| Rack * | rack |
| bool | across |
| int | dict |
| QPoint | current |
| const Tile ** | best |
| int | best_n |
| Tile * | best_blankvalues |
| int | best_blused |
| int | best_score |
| QPoint | best_dir |
| QPoint | best_start |
|
||||||||||||
|
Definition at line 569 of file wordgame.cpp. References across, best_score, dict, and FALSE. |
|
|
Definition at line 578 of file wordgame.cpp. References best, and best_blankvalues. |
|
||||||||||||||||||||||||||||||||||||||||
|
Definition at line 626 of file wordgame.cpp. References board, Board::contains(), Rack::count(), Tile::isBlank(), QDawg::Node::isWord(), QDawg::Node::jump(), l, QDawg::Node::letter(), QDawg::Node::next(), noteChoice(), rack, rc, t, Tile::text(), Board::tile(), Rack::tileRef(), QChar::unicode(), and Opie::MM::x. Referenced by step(). |
|
||||||||||||||||||||||||
|
Definition at line 678 of file wordgame.cpp. References best, best_blankvalues, best_blused, best_dir, best_n, best_score, best_start, board, current, i, s, Board::score(), and TRUE. Referenced by findBest(). |
|
|
Definition at line 584 of file wordgame.cpp. References across, Rack::arrangeTiles(), best, best_blankvalues, best_dir, best_n, best_score, best_start, board, current, d, Global::dawg(), dict, FALSE, findBest(), Global::fixedDawg(), i, Tile::isBlank(), rack, Board::scoreTurn(), Rack::setBlanks(), Board::showTurn(), Tile::text(), Rack::tileRef(), TRUE, Board::xTiles(), and Board::yTiles(). Referenced by WordGame::think(). |
|
|
Definition at line 250 of file wordgame.h. Referenced by ComputerPlayer(), and step(). |
|
|
Definition at line 254 of file wordgame.h. Referenced by noteChoice(), step(), and ~ComputerPlayer(). |
|
|
Definition at line 256 of file wordgame.h. Referenced by noteChoice(), step(), and ~ComputerPlayer(). |
|
|
Definition at line 257 of file wordgame.h. Referenced by noteChoice(). |
|
|
Definition at line 259 of file wordgame.h. Referenced by noteChoice(), and step(). |
|
|
Definition at line 255 of file wordgame.h. Referenced by noteChoice(), and step(). |
|
|
Definition at line 258 of file wordgame.h. Referenced by ComputerPlayer(), noteChoice(), and step(). |
|
|
Definition at line 260 of file wordgame.h. Referenced by noteChoice(), and step(). |
|
|
Definition at line 247 of file wordgame.h. Referenced by findBest(), noteChoice(), and step(). |
|
|
Definition at line 252 of file wordgame.h. Referenced by noteChoice(), and step(). |
|
|
Definition at line 251 of file wordgame.h. Referenced by ComputerPlayer(), and step(). |
|
|
Definition at line 248 of file wordgame.h. Referenced by findBest(), and step(). |
1.4.2